Uses of Class
org.javacord.api.interaction.DiscordLocale
-
Packages that use DiscordLocale Package Description org.javacord.api.interaction org.javacord.api.interaction.internal -
-
Uses of DiscordLocale in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return DiscordLocale Modifier and Type Method Description static DiscordLocaleDiscordLocale. fromLocaleCode(java.lang.String localeCode)Gets a DiscordLocale from its locale code.DiscordLocaleInteractionBase. getLocale()Gets the selected language of the invoking user.static DiscordLocaleDiscordLocale. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DiscordLocale[]DiscordLocale. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.javacord.api.interaction that return types with arguments of type DiscordLocale Modifier and Type Method Description java.util.Map<DiscordLocale,java.lang.String>ApplicationCommand. getDescriptionLocalizations()Gets the description localizations of this command.java.util.Map<DiscordLocale,java.lang.String>SlashCommandOption. getDescriptionLocalizations()Gets the description localizations for this option.java.util.Map<DiscordLocale,java.lang.String>ApplicationCommand. getNameLocalizations()Gets the name localizations of this command.java.util.Map<DiscordLocale,java.lang.String>SlashCommandOption. getNameLocalizations()Gets the name localizations for this option.java.util.Map<DiscordLocale,java.lang.String>SlashCommandOptionChoice. getNameLocalizations()Gets the name localizations for this choice.java.util.Optional<DiscordLocale>InteractionBase. getServerLocale()Gets the server's preferred locale, if invoked in a server.Methods in org.javacord.api.interaction with parameters of type DiscordLocale Modifier and Type Method Description TApplicationCommandBuilder. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.BApplicationCommandUpdater. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.SlashCommandOptionBuilderSlashCommandOptionBuilder. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.TApplicationCommandBuilder. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.BApplicationCommandUpdater. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.SlashCommandOptionBuilderSlashCommandOptionBuilder. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.SlashCommandOptionChoiceBuilderSlashCommandOptionChoiceBuilder. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale. -
Uses of DiscordLocale in org.javacord.api.interaction.internal
Methods in org.javacord.api.interaction.internal with parameters of type DiscordLocale Modifier and Type Method Description voidApplicationCommandBuilderDelegate. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.voidApplicationCommandUpdaterDelegate. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.voidSlashCommandOptionBuilderDelegate. addDescriptionLocalization(DiscordLocale locale, java.lang.String localization)Adds a description localization for the given locale.voidApplicationCommandBuilderDelegate. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.voidApplicationCommandUpdaterDelegate. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.voidSlashCommandOptionBuilderDelegate. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.voidSlashCommandOptionChoiceBuilderDelegate. addNameLocalization(DiscordLocale locale, java.lang.String localization)Adds a name localization for the given locale.
-