`client.generateInvite()` undefined domain after update

After updating to 14.14.0, generating an invite returns an undefined domain instead of discord.com/api. This is immediately noticeable by trying to put the generate invite into an URL button Sample code:
console.log(this.client.generateInvite({scopes:['bot']}))
// Output: undefined/oauth2/authorize?client_id=<redacted>&scope=bot
console.log(this.client.generateInvite({scopes:['bot']}))
// Output: undefined/oauth2/authorize?client_id=<redacted>&scope=bot
Node.js v21.1.0
3 Replies
d.js toolkit
d.js toolkit12mo 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 OP
duck
duck12mo ago
known issue, fix deploying soon tm
MoonlightCapital
MoonlightCapitalOP12mo ago
alr thanks
Want results from more Discord servers?
Add your server