Sharp
Sharp
DIAdiscord.js - Imagine an app
Created by Sharp on 2/6/2024 in #djs-questions
commands not refreshing
I have always added my commands on the ready function, but I read somewhere that this is not a good practice, anyone has any materials to read on that? recently my bot has been pretty slow to add or update commands changed, I wonder if I cross some sort of threshold that makes it slower or something like that.
6 replies
DIAdiscord.js - Imagine an app
Created by Sharp on 2/5/2024 in #djs-questions
interaction works on and off
Alright, I'm wondering if discord has some sort of rate limit when you testing commands, because it started to refuse so replies that usually work and it doesn't make no sense why it would stop receiving, so far the only successful wait has been to stop testing for like a few minutes and then try again and the command works... Here is the command:
await interaction.showModal(modal);

const modalResponse = await interaction.awaitModalSubmit({ time: 180000 });
await modalResponse.deferReply({ ephemeral: true });
await interaction.showModal(modal);

const modalResponse = await interaction.awaitModalSubmit({ time: 180000 });
await modalResponse.deferReply({ ephemeral: true });
` The defer reply shows throws unknow message error. Anyone seen anything like that? I just want to make sure it isn't any new change or option I need supply.
6 replies
DIAdiscord.js - Imagine an app
Created by Sharp on 1/26/2024 in #djs-questions
awaitMessageComponent not working on server but works locally...
So, I have the following code that has been running for months.... const collectorFilter = i => { return selectionInteraction.user.id === interaction.user.id; } const confirmation = await roleSelectionMessage.awaitMessageComponent({ filter: collectorFilter, time: 60000 }); if (confirmation.customId === 'mySelectMenu') { // do more stuff here } well that await component decided to not work on my linux server it has been running for months, if I run the bot on my machine it responds normally, anyone has any ideas as to what to look? If anyone is curious am using the 14.8.0 version... could that be the cause? thanks
19 replies
DIAdiscord.js - Imagine an app
Created by Sharp on 5/11/2023 in #djs-questions
Token removed because bot connected more than 1000?
I got the following msg and i'm trying to figure out how to prevent it, what could it be causing it: It appears your bot, XXXXXX, has connected to Discord more than 1000 times within a short time period. Since this kind of behavior is usually a result of a bug we have gone ahead and reset your bot's token.
9 replies
DIAdiscord.js - Imagine an app
Created by Sharp on 4/4/2023 in #djs-questions
Updating permissions in already deployed bot
I have a bot that I started with fewer permissions needed, now I want to add more commands that will require more permissions, anyone knows what is the impact if any or changes needed in the servers already using the bot in case I update the permissions?
10 replies