Message object rate limits

Few questions on messages editing: Trying to implement a single message that will be updated for all my discord player events. as in update the original interaction reply message till the end of the lifecycle for that queue possibly. 1) I know the interaction is valid for a max of 15 mins. However can I do .fetchReply() even after 15 mins ? 2) is storing the interaction and then fetching the message or storing the message object directly int othe metadata for the queue better ? 3) should I be worried about rate limits for updating the message ? Possible scenario, I put a 10 sec clip for playback. the bot sends the original confirmation reply > audioTrackAdd > playerStart > (10 sec clip plays) > emptyQueue > disconnect messages in that order. the first 3 events might be in very short intervals. talking about seconds here.
6 Replies
d.js toolkit
d.js toolkit6mo 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!
Febkosq8
Febkosq8OP6mo ago
No description
Febkosq8
Febkosq8OP6mo ago
current code that I am working on
No description
d.js docs
d.js docs6mo ago
:discord: Channels Resource - Edit Message PATCH /channels/channel.id/messages/message.id Edit a previously sent message. The fields content, embeds, and flags can be edited by the original message author. Other users can only edit flags and only if they have the MANAGE_MESSAGES permission in the corresponding channel. When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying. Only flags documented in the table below may be modified by users (unsupported flag changes are currently ignored without error). read more :discord: Rate Limits Rate limits exist across Discord's APIs to prevent spam, abuse, and service overload. Limits are applied to individual bots and users both on a per-route basis and globally. Individuals are determined using a request's authentication—for example, a bot token for a bot. read more
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP6mo ago
thanks. 1 and 3 sounds fine still not sure what 2 meant The Promise resolves with the message. bot is not private but again not a very busy bot in general few active users overall is in around 30 guild atm :4370_TikTokSweat: i am breaking TOS ? oh that. yea. not much people actully use the bot but I get the point i just wanted to know if I will run into issues if i keep updating messages really
Want results from more Discord servers?
Add your server