Class JsonLocalizationsProvider
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public class JsonLocalizationsProvider : ILocalizationsProvider
- Inheritance
-
JsonLocalizationsProvider
- Implements
- Inherited Members
Constructors
JsonLocalizationsProvider(JsonLocalizationsProviderConfiguration?)
public JsonLocalizationsProvider(JsonLocalizationsProviderConfiguration? configuration = null)
Parameters
configuration
JsonLocalizationsProviderConfiguration
Methods
GetLocalizationsAsync(IReadOnlyList<LocalizationPathSegment>, CancellationToken)
public ValueTask<IReadOnlyDictionary<string, string>?> GetLocalizationsAsync(IReadOnlyList<LocalizationPathSegment> path, CancellationToken cancellationToken = default)
Parameters
path
IReadOnlyList<LocalizationPathSegment>cancellationToken
CancellationToken