#Can not register commands for type ApplicationCommandModule
1 messages · Page 1 of 1 (latest)
your command class has to inherit from ApplicationCommandModule
like public class FunCommands : ApplicationCommandModule { }
you need ApplicationCommandModule
ah alr
you're trying to register on a CommandsNextExtension
if you want slash commands you have to use the SlashCommandsExtension
There is no argument given that corresponds to the required formal parameter 'description' of 'SlashCommandAttribute.SlashCommandAttribute(string, string, bool)' [ceesharp]csharp(CS7036)
@mint yarrow any idea?
you're supposed to have a second parameter to the slash command attribute
as long as you follow this properly it should be fine
i have a error at registering, technically i did everything right in documentation but i get this
System.ArgumentException: Arguments must have the Option attribute!
at DSharpPlus.SlashCommands.SlashCommandsExtension.ParseParameters(ParameterInfo[] parameters, Nullable`1 guildId)
at DSharpPlus.SlashCommands.SlashCommandsExtension.<>c__DisplayClass39_0.<<RegisterCommands>b__0>d.MoveNext()
Commands = Client.UseSlashCommands();
Commands.RegisterCommands<MyCommands>();
the error means you did not read the documentation properly
bro
Then tell me whats wrong