Discord.Net
Discord.Net copied to clipboard
An AddSlashCommand overload should be AddAutocompleteCommand in ModuleBuilder
Description
In ModuleBuidler, an overload for adding autocomplete command was named AddSlashCommand instead of AddAutocompleteCommand. This pull request would like to correct the method name while maintaining backward compatibility.
https://github.com/discord-net/Discord.Net/blob/de8da0d3b998d32e248e5e438039d266139e4776/src/Discord.Net.Interactions/Builders/ModuleBuilder.cs#L373-L389
Changes
- Renamed the method called
AddSlashCommandtoAddAutocompleteCommandto better reflect its functionality. - Introduced a new
AddAutocompleteCommandmethod to supersede the original functionality. - Added an Obsolete attribute to the
AddSlashCommandmethod.