Closed samusaran closed 2 years ago
I can't get the bot to work.
If I breakpoint on play.js:28 I can see that the following line sets guild to undefined:
play.js:28
guild
undefined
const guild = client.guilds.cache.get(ctx.guildID);
I can see ctx.guildID contains my guild ID.
ctx.guildID
Why can't the bot manage to read the guild?
Did you enable the intent?
@rhozetta I managed to solve by adding the "bot" permission to the bot. The permission list that worked for me is the following:
I can't get the bot to work.
If I breakpoint on
play.js:28
I can see that the following line setsguild
toundefined
:I can see
ctx.guildID
contains my guild ID.Why can't the bot manage to read the guild?