get Guilds For Command Id
open fun getGuildsForCommandId(commandId: String, commandPath: CommandPath): Collection<Long>?(source)
Deprecated
Replaced by DeclarationFilter and CommandDeclarationFilter
Returns a collection of Guild IDs in which the specified command ID will be allowed to be pushed in.
Return values:
null
if the command can be used in any guildAn empty list if the command cannot be used anywhere
A list of guild IDs, where the command will be usable
Make sure to not allow more than one command with the same path.
Return
A collection of Guild IDs where the specified command is allowed to be pushed in
This returns null
by default
Parameters
command Id
The ID of the command that has been set with @CommandId
command Path
The CommandPath of the specified command ID
See also
@CommandId