diff --git a/src/AutocompleteProviders/CommandAutocompleteProvider.cs b/src/AutocompleteProviders/CommandAutoCompleteProvider.cs similarity index 93% rename from src/AutocompleteProviders/CommandAutocompleteProvider.cs rename to src/AutocompleteProviders/CommandAutoCompleteProvider.cs index b77090d..2f2e4c2 100644 --- a/src/AutocompleteProviders/CommandAutocompleteProvider.cs +++ b/src/AutocompleteProviders/CommandAutoCompleteProvider.cs @@ -8,9 +8,9 @@ using DSharpPlus.Entities; using Humanizer; -namespace OoLunar.Tomoe.AutocompleteProviders +namespace OoLunar.Tomoe.AutoCompleteProviders { - public sealed class CommandAutocompleteProvider : IAutoCompleteProvider + public sealed class CommandAutoCompleteProvider : IAutoCompleteProvider { public ValueTask> AutoCompleteAsync(AutoCompleteContext context) { diff --git a/src/AutocompleteProviders/CultureInfoAutocompleteProvider.cs b/src/AutocompleteProviders/CultureInfoAutoCompleteProvider.cs similarity index 94% rename from src/AutocompleteProviders/CultureInfoAutocompleteProvider.cs rename to src/AutocompleteProviders/CultureInfoAutoCompleteProvider.cs index a03c3ec..408c5a0 100644 --- a/src/AutocompleteProviders/CultureInfoAutocompleteProvider.cs +++ b/src/AutocompleteProviders/CultureInfoAutoCompleteProvider.cs @@ -7,15 +7,15 @@ using DSharpPlus.Commands.Processors.SlashCommands.ArgumentModifiers; using DSharpPlus.Entities; -namespace OoLunar.Tomoe.AutocompleteProviders +namespace OoLunar.Tomoe.AutoCompleteProviders { - public sealed class CultureInfoAutocompleteProvider : IAutoCompleteProvider + public sealed class CultureInfoAutoCompleteProvider : IAutoCompleteProvider { private static readonly CultureInfo[] _cultures; private static readonly FrozenSet _defaultCultureList; private static readonly FrozenDictionary _cultureInfoDisplayNames; - static CultureInfoAutocompleteProvider() + static CultureInfoAutoCompleteProvider() { _cultures = CultureInfo.GetCultures(CultureTypes.AllCultures); Array.Sort(_cultures, (x, y) => string.Compare(x.DisplayName, y.DisplayName, StringComparison.Ordinal)); diff --git a/src/AutocompleteProviders/TimeZoneInfoAutocompleteProvider.cs b/src/AutocompleteProviders/TimeZoneInfoAutoCompleteProvider.cs similarity index 95% rename from src/AutocompleteProviders/TimeZoneInfoAutocompleteProvider.cs rename to src/AutocompleteProviders/TimeZoneInfoAutoCompleteProvider.cs index 5416b44..6507548 100644 --- a/src/AutocompleteProviders/TimeZoneInfoAutocompleteProvider.cs +++ b/src/AutocompleteProviders/TimeZoneInfoAutoCompleteProvider.cs @@ -8,13 +8,13 @@ namespace OoLunar.Tomoe.AutocompleteProviders { - public sealed class TimeZoneInfoAutocompleteProvider : IAutoCompleteProvider + public sealed class TimeZoneInfoAutoCompleteProvider : IAutoCompleteProvider { private static readonly TimeZoneInfo[] _timezones; private static readonly FrozenSet _defaultTimezoneList; private static readonly FrozenDictionary _timezoneDisplayNames; - static TimeZoneInfoAutocompleteProvider() + static TimeZoneInfoAutoCompleteProvider() { _timezones = [.. TimeZoneInfo.GetSystemTimeZones()]; Array.Sort(_timezones, (x, y) => string.Compare(x.DisplayName, y.DisplayName, StringComparison.Ordinal)); diff --git a/src/Commands/Common/SourceCodeCommand.cs b/src/Commands/Common/SourceCodeCommand.cs index e12f1b0..a345798 100644 --- a/src/Commands/Common/SourceCodeCommand.cs +++ b/src/Commands/Common/SourceCodeCommand.cs @@ -16,7 +16,7 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; -using OoLunar.Tomoe.AutocompleteProviders; +using OoLunar.Tomoe.AutoCompleteProviders; namespace OoLunar.Tomoe.Commands.Common { @@ -224,7 +224,7 @@ private static IEnumerable GetNodes(this IEnumerable nodes) wh /// Sends a link to the repository which contains the code for the bot. /// [Command("source_code"), TextAlias("repository", "source", "code", "repo")] - public static async ValueTask ExecuteAsync(CommandContext context, [RemainingText, SlashAutoCompleteProvider] string? commandName = null) + public static async ValueTask ExecuteAsync(CommandContext context, [RemainingText, SlashAutoCompleteProvider] string? commandName = null) { if (string.IsNullOrWhiteSpace(commandName)) { diff --git a/src/Events/Handlers/ConfigureCommandsEventHandler.cs b/src/Events/Handlers/ConfigureCommandsEventHandler.cs index 736672f..2ea08c5 100644 --- a/src/Events/Handlers/ConfigureCommandsEventHandler.cs +++ b/src/Events/Handlers/ConfigureCommandsEventHandler.cs @@ -10,7 +10,7 @@ using DSharpPlus.Commands.Processors.TextCommands.ContextChecks; using DSharpPlus.Commands.Trees; using DSharpPlus.Entities; -using OoLunar.Tomoe.AutocompleteProviders; +using OoLunar.Tomoe.AutoCompleteProviders; namespace OoLunar.Tomoe.Events.Handlers { @@ -40,11 +40,11 @@ public static Task ConfigureCommandsAsync(CommandsExtension _, ConfigureCommands } else if (baseParameterType == typeof(CultureInfo)) { - parameter.Attributes.Add(new SlashAutoCompleteProviderAttribute()); + parameter.Attributes.Add(new SlashAutoCompleteProviderAttribute()); } else if (baseParameterType == typeof(TimeZoneInfo)) { - parameter.Attributes.Add(new SlashAutoCompleteProviderAttribute()); + parameter.Attributes.Add(new SlashAutoCompleteProviderAttribute()); } } }