Bot Discord
I have a discord bot that I’ve all put in administrator but he can’t find permission for that
23 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
It doesn’t light up at all I have direct error
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ok, so first of all, async/await
Second, this ^
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
??
You have a lot of methods like
GetChannelASYNC
or SendMessageASYNC
.
Async methods usually have to be awaited. Everything else can probably lead to a deadlock
for example, take this line here
With async/await, you'll have
(given that the method you are using this in is also async)
Alsooooo, what exactly is IDCHANNEL
. iirc, this function of D#+ needs a ulong
Ok
Even if I remove the error the bot doesn’t turn on
how did you configure your client?
I hope this is not your real token 😄
If yes, you should change it now.
Anyway, i think a discord bot needs intents to work properly. Not sure how the lib handles that
Iirc in your
DiscordConfiguration
you need to specify the intentsNo real token xd
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Well from discord.js i know that the bot straight up wont even start without intents
adding
Intents = DiscordIntent.AllUnprivileged
to the discord configuration should do the trickUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
We also talked about the .env file
It's because you see it surpass you too many times sadly
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View