Skip to content

Commit

Permalink
fix naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Oct 3, 2023
1 parent ef98776 commit 9999626
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace CollaborationBot.Autocomplete {
public class ModuleAutocompleteHandler : AutocompleteHandler {
private static readonly string[] Modules = { "project", "guild", "part", "asn", "au" };
private static readonly string[] modules = { "project", "guild", "part", "asn", "au" };

public override Task<AutocompletionResult> GenerateSuggestionsAsync(IInteractionContext context, IAutocompleteInteraction autocompleteInteraction,
IParameterInfo parameter, IServiceProvider services) {
var prefix = (string)autocompleteInteraction.Data.Current.Value;
return Task.FromResult(AutocompletionResult.FromSuccess(Modules.Where(o => o.StartsWith(prefix)).Select(o => new AutocompleteResult(o, o))));
return Task.FromResult(AutocompletionResult.FromSuccess(modules.Where(o => o.StartsWith(prefix)).Select(o => new AutocompleteResult(o, o))));
}
}
}

0 comments on commit 9999626

Please sign in to comment.