is it normal for discord to say I have two of the same command, even tho I only specified it once?
here is the command program:
namespace Markbot2._0
{
public class SlashCommands : ApplicationCommandModule
{
[SlashCommand("test", "A slash command made to test the DSharpPlus Slash Commands extension!")]
...
[SlashCommand("sum", "takes the sum of two numbers")]
...
}
[SlashCommand("8ball", "Ask Mark to provide his wisdom.")]
...
}
}
+
annnnd my program.cs:
namespace Markbot2._0
{
public class Program
{
static void Main(string[] args)
{
MainAsync().GetAwaiter().GetResult();
}
static async Task MainAsync()
{
var discord = new DiscordClient(new DiscordConfiguration()
{
Token = "i probably shouldn't hard code this",
TokenType = TokenType.Bot,
Intents = DiscordIntents.AllUnprivileged
});
var slash = discord.UseSlashCommands();
slash.RegisterCommands<SlashCommands>(1050971027632558110);
slash.RegisterCommands<SlashCommands>();
await discord.ConnectAsync();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bot online!");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("type 'exit' or press 'ctrl + c' twice to stop.");
if (Console.ReadLine() == "exit")
{
System.Environment.Exit(1);
}
await Task.Delay(-1);
}
}
}

