© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
discord.js - Imagine ❄d-I❄
discord.js - Imagine ❄•4y ago•
2 replies
rhh4x0R

Passing metadata from bot OAuth2 Invite link?

I'm wanting to pass a variable from an oauth2 invite link and then read it when the bot is added to the server. I'm not finding anything besides somehow passing 'state' in the URL -- but I'm not able to read it on the 'guild' object when I add it to the server. Any ideas?

Thanks.
discord.js - Imagine ❄ banner
discord.js - Imagine ❄Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Invite bot with metadata?
discord.js - Imagine ❄d-I❄discord.js - Imagine ❄ / djs-questions
4y ago
Discord Bot Creating Invite Link
discord.js - Imagine ❄d-I❄discord.js - Imagine ❄ / djs-questions
2y ago
Oauth2 bot reply
discord.js - Imagine ❄d-I❄discord.js - Imagine ❄ / djs-questions
4y ago