very quick question and clarification

https://discord.com/channels/222078108977594368/1144684037919756508/1144685393166483479 Regarding that message. Bots can't create invites on their own e.g. when added to a guild gets a guild invite and sends in the support server (all with guildCreate event). I noticed the invites did create on their own if I was in the guild. Note that this is not a command of any sort, bot joins server, creates an invite and sends it to the support server in a channel
4 Replies
d.js toolkit
d.js toolkit13mo 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! - Marked as resolved by staff
VØJ
VØJOP13mo ago
Is that correct?
treble/luna
treble/luna13mo ago
bot will not create invites on their own they can create when being added to a guild but its probably against tos
VØJ
VØJOP13mo ago
The invites create when I'm in that guild but this is all run through the event, not a command. Invite generates if I'm in the guild, if not then it returns undefined. Which is a little odd As there is no code anywhere to see if I'm in the server or not I was thinking that but don't want to violate anything Is there a way to get an invite code from the guild and send it somewhere? Without creating an invite
Want results from more Discord servers?
Add your server