Search Results for

    Show / Hide Table of Contents

    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 Source

    GetAllDescriptions(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.

    | Improve this Doc View Source

    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.

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0