Interface ILocalizationManager
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Represents a localization provider for Discord Application Commands.
public interface ILocalizationManager
Methods
GetAllDescriptions(IList<string>, LocalizationTarget)
Get every the resource description for every available locale.
IDictionary<string, string> GetAllDescriptions(IList<string> key, LocalizationTarget destinationType)
Parameters
key
IList<string>Location of the resource.
destinationType
LocalizationTargetType of the resource.
Returns
- IDictionary<string, string>
A dictionary containing every available locale and the resource name.
GetAllNames(IList<string>, LocalizationTarget)
Get every the resource name for every available locale.
IDictionary<string, string> GetAllNames(IList<string> key, LocalizationTarget destinationType)
Parameters
key
IList<string>Location of the resource.
destinationType
LocalizationTargetType of the resource.
Returns
- IDictionary<string, string>
A dictionary containing every available locale and the resource name.