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 toolkit4mo 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/luna4mo ago
Do you have the Guilds intent
bunningtonfoot
bunningtonfootOP4mo ago
intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.DirectMessages
], It randomly stopped working
treble/luna
treble/luna4mo ago
Is this a user app
bunningtonfoot
bunningtonfootOP4mo ago
I clicked add app and then clicked the bot one
treble/luna
treble/luna4mo ago
and did this happen in a DM
bunningtonfoot
bunningtonfootOP4mo ago
No
treble/luna
treble/luna4mo ago
Log interaction
bunningtonfoot
bunningtonfootOP4mo 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