Passing payload in oauth link
I am trying to build a discord integraion with my app, I want to pass a payload (userid of the user who is integrating the bot in my db) in the invite link of the bot and when the bot is added to the guild i want to receive the payload and serverid along with the discord user id Can anyone guide me on this?
i was first useing replit but peaples keep saying its bad so i exported the code to visual studio
but now i cant find how to run the code :/
ps: its in my browser cose for some reason my pc dont want to downal it...

error with pm2 nodejs server
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)...
help with buttons
is it possible for the bot to send another message after clicking a URL style button?
Hide Embed Content
So I have something like this working for my bot. Essential the bottom embed tells the bot to consume any reply made to this message and where to store that response (modals don't allow emojis, mentions, etc). But it isn't exactly a pleasant solution. I was wondering if there is anyway to hide content within an embed.
The top embed stores final values until the user presses save and they are stored on a database....

Is there any way to know when a user has purchased or cancelled/not renewed a server subscription?
Couldn't find anything about it in the guide. I'm on
14.11.0. Thank you!Autocomplete failing to load choices
Here is my code:
```JS
async function handleAutocomplete(interaction, gamesCache) {
console.log('handleAutocomplete called');...

applied Tags
so im trying to make my bot send a message when a certain tag is applied to a thread
```js
client.on(Events.ThreadUpdate, async (oldThread, newThread, channel) => {
console.log(newThread.appliedTags)...
Exit the Client Ready event
Good evening, I have a js script which is used for a cron task, so I would like it to stop by itself after execution, but I use the ready event, and the script continues to run even after the commands have finished.
Is it possible to stop the script after the end of the code in the event ready?
Thank you in avance !...
interaction.reply and web3 library issue
I receive an error during
interaction.reply .
I use discord.js (ver. 13.16) and web3 library to send transaction from one account to another and transaction is passed, but after doing it my bot turn off and show me an error:
```\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^...Needing help with turning a discord bot online.
π The bloody video I followed isnt working for me. Needing some help here.

Bot staying online when code isnβt running
In Discord.py, when I stop the code from running the bot account instantly goes offline. Why does it take a few minutes for Discord.js to do the same?
shardCreate/ShardingManager with shards: 'auto'?
Possibly a dumb question about sharding β I apologize if it is.
I'm using
shards: 'auto'. This is because for this specific bot, I'm only in around 40K servers and I only use around 2GB RAM.
If I use a ShardingManager, and each process/worker has a MySQL connection pool using mysql2, the RAM usage increases drastically; I believe this is because it always keeps a connection open to improve performance... and MySQL reserves a lot of RAM for each connection. I end up maxing-out my VPS' 24GB....Question
So, I am just wondering how do I make an application form with a context menu popup and send results to a channel?
Bot role with emoji
Hi,
I wrote the code for the bot. The essence of the code: When writing the !create command in the chat, the bot displays a message with a choice of role and reactions under it. The user clicks on a certain reaction and he is given a role.
Problem: the role is not issued, although the names of the roles are the same, the bot has administrator rights.
...

send message to user in PresenceUpdate event
How can I send a message to an user when the PresenceUpdate event was called?
