Guild Emoji Arg
open class GuildEmojiArg(val name: String = "Guild Emoji", val description: String = internalLocale.guildEmojiArgDescription, allowsGlobal: Boolean = false) : StringArgument<GuildEmoji>
Accepts a guild emoji.
Parameters
allows Global
Whether this entity can be retrieved from outside this guild.
Inheritors
Functions
Link copied to clipboard
open fun autocomplete(choices: suspend AutocompleteData.() -> List<String>): AutocompleteArg<String, GuildEmoji>
Offer autocomplete options for this argument.
Link copied to clipboard
A function called whenever an example of this type is needed.
Link copied to clipboard
Utility function to check that this Argument is an OptionalArg.
Link copied to clipboard
Accept multiple inputs of this Argument.
Link copied to clipboard
Make this argument optional and fall back to the default value if the conversion fails.
open fun optional(default: suspend (DiscordContext) -> GuildEmoji): OptionalArg<String, GuildEmoji, GuildEmoji>
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.
Link copied to clipboard
Make this argument optional and fall back to the default value if the conversion fails.
open fun optionalNullable(default: suspend (DiscordContext) -> GuildEmoji?): OptionalArg<String, GuildEmoji, GuildEmoji?>
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.