How to mention a guild
Is there a way to mention a guild like you would mention a user or a channel etc.? For example: #general
I have an error that I cannot solve
My code is: https://sourceb.in/nXRmM0SEUW
And the error is: at Task._execution (D:\atermibot\index.js:35:36)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)...
anyone know why I get this error?
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\Adam.vscode\Rythm\Rythm\node_modules@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Adam.vscode\Rythm\Rythm\node_modules@discordjs\rest\dist\index.js:835:23)
at async _REST.request (C:\Users\Adam.vscode\Rythm\Rythm\node_modules@discordjs\rest\dist\index.js:1278:22)...
Assistance in setting up makeCache and sweepers
Hello, I would like Assistance in setting up makeCache and sweepers.
My problem:
I have a certain amount of cpu/ram usage available to my bot, because that is what my host allows me / what I pay for atm, and the server cpu usage reaches 100% after 1.5 days of my bot being online.
My bot is in 1.3k servers and does basically only music related stuff....
Restarting bot token programatically
Is there any way that we can reset a bot's token? If there is no official method or underlying api endpoint I can use, what would a possible solution be to accomplish this?
Shards Error ShardingReadyTimeout
Error while spawning shards: Error [ShardingReadyTimeout]: Shard 0's Client took too long to bec ome ready.
at Timeout.onTimeout (/home/container/node_modules /discord.is/src/sharding/Shard.js:183:16)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers :514:7) {
code: 'ShardingReadyTimeout'...
memory
my bot is across 10,000 guilds with 10 shards, each shard is approximal needs 550-750mb
I am using the following intents:
```
intents: [
GatewayIntentBits.Guilds,...
How Can I Restart My Discord Bot Without Downtime? (130k Servers)
My bot is currently in around 130,000 servers, and I'm using Discord.js with sharding to handle them. The problem I'm facing is that whenever I need to restart the bot for updates, it takes around 15 minutes for the bot to be fully online across all servers.
Is there a way to restart my bot without any downtime? I'd really appreciate some guidance on this! Thanks in advance....
Message.channel type does not seem to have send and sendTyping in v14
My particular bot build is a typescipt build. The transpiler (and my edtior) indicate that the channel object in the Message type no longer has send and sendTyping. How are they meant to be used now? Is there a type to replace Message or something?
I have tried to find any relevant info on this in the version to version migration guides and other posts here, but all I can figure out is the functions still seem to exist on the object and should work, but obviously typescript wont compile it if types dont allow it.
My flow:...
Node.js host process becomes "locked up" / "clogged" for simple bot
I have developed a simple bot that:
1. Detects when a message could possibly contain media/embeds
2. Reacts with up/down arrows, an "upvote bot"
And it works great! It's very funny and useful for my Discord community named "MNSND".
...
Getting message context after modal submission best practice
I have a message context action that gives the user a modal. When the modal is submitted, what is the best practice for getting/saving the message context that opened the modal in the first place?
ChatGPT is suggesting to pass the messageID in the customID field and parsing it out, which I guess would work, but what is the best way?...
Mee6 Import Script/Command
I have a custom bot that was originally written by another person who created this bot to allow others to have their own custom bots. I have since edited it for my own use and messed about with it and I'm now looking how to create a Mee6 import script or command that will allow me to use my bot to manage people's levels in my server, however, using the xp that they previously gained using Mee6. I would also like to create a leaderboard that will show everyone's levels. Could I receive some help...
simple template to load slash cmds from
hey, im looking for a simple template to load slash cmds from i couldnt find anything online and asked copilot but they came back with weird shit pls help 🙏
How would I lock a command behind a specific role?
I want to make a command that only a specific role can run.
Can i fetch every message from a channel?
Hello, i'm trying to make a bot that sends a random cat photo from the cat photos channel, but i don't know how i can get every message on the channel.
Get the date of a user joining discord
Is there a way to use the Discord API to get the date when a user joined discord (not a guild) or does discord not give out that infommation. I was unable to find any traces
Shard Error
Not enough sessions remaining to spawn 1 shards only 0 remaining; resets at 2024-09-29T08:20:23.377Z