interaction.guild

When I use console.log(interaction.guild) it returns null. I also can’t get the owner id or the guild name
9 Replies
d.js toolkit
d.js toolkit•3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
treble/luna
treble/luna•3mo ago
Do you have the Guilds intent
bunningtonfoot
bunningtonfoot•3mo ago
intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.DirectMessages
], It randomly stopped working
treble/luna
treble/luna•3mo ago
Is this a user app
bunningtonfoot
bunningtonfoot•3mo ago
I clicked add app and then clicked the bot one
treble/luna
treble/luna•3mo ago
and did this happen in a DM
bunningtonfoot
bunningtonfoot•3mo ago
No
treble/luna
treble/luna•3mo ago
Log interaction
bunningtonfoot
bunningtonfoot•3mo ago
Ok give me a second There’s nothing with guild just the id In my other server it gives me a guild option with the interaction It’s an app and not like a normal bot, I think I clicked the wrong one Could you tell me how to remove this app? So I can use the invite link Thanks
Want results from more Discord servers?
Add your server