C#C
C#4y ago
malkav

✅ Discord.NET InteractionModule issues

Okay so I followed this guy to setup a base skeleton for my Discord.NET bot, however I do not get my commands to actually reply or respond to my calls, but they do get registered to the guild. I added some Console.WriteLine methods in there to see until where it was being called.
It seems that the actual HandleSomeCommand() methods are not being called, and the class InteractionModule gives me the This class is not being used like message. Not a warning or error per-se, but I believe I'm missing something..
Link to tutorial for reference: https://www.youtube.com/watch?v=fvVWIPgfYdA&ab_channel=CrenstonCustoms-Coding (this is ep 3)

I'm not actually sure where to look for "missing" pieces, so here's a list of hastebins for my code:
Program.cs https://hastebin.com/izaquqasos.csharp
Ready.cs https://hastebin.com/olamedevur.csharp
InteractionHandler.cs https://hastebin.com/uxiqokoloh.csharp
InteractionModule.cs https://hastebin.com/gucuxaneki.cpp
the last Console.WriteLine I am getting in from my bot, when I use a slashCommand, is the line Handling interaction from the InteractionHandler.cs at line: 31

What am I missing?? (note: I don't believe any secrets are in the code, but if they are, after finishing the bot, these secrets will be re-generated)
Was this page helpful?