Interface ILocalizationManager
Represents a localization provider for Discord Application Commands.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public interface ILocalizationManager
Methods
| Improve this Doc View SourceGetAllDescriptions(IList<String>, LocalizationTarget)
Get every the resource description for every available locale.
Declaration
IDictionary<string, string> GetAllDescriptions(IList<string> key, LocalizationTarget destinationType)
Parameters
Type | Name | Description |
---|---|---|
IList<String> | key | Location of the resource. |
LocalizationTarget | destinationType | Type of the resource. |
Returns
Type | Description |
---|---|
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.
Declaration
IDictionary<string, string> GetAllNames(IList<string> key, LocalizationTarget destinationType)
Parameters
Type | Name | Description |
---|---|---|
IList<String> | key | Location of the resource. |
LocalizationTarget | destinationType | Type of the resource. |
Returns
Type | Description |
---|---|
IDictionary<String, String> | A dictionary containing every available locale and the resource name. |