Is it possible to add "streaming" text feature to text via Discord.js? Would that be allowed?

ChatGPT (and other models) have these feature called "Streaming", where it shows the text its generating as if its being typed in real time I want to implement this to my Discord bot because I think it looks cool. I am thinking of doing it by constantly editing the message to make it look streaming. But I'm worried about the rate limits and how it might cause me to get into issues. Would simply staying below the rate limit (50req/s, afaik) be enough to allow me to actually implement this feature? The "constant edits" speed I'm thinking about currently is about 2 edits or 5 edits per second. But I'm worried this may be "spammy behavior".
3 Replies
d.js toolkit
d.js toolkit16mo 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!
chewie
chewie16mo ago
it is, in fact, spammy behavior but even if you get ratelimited, djs handles that for you by queuing the requests. But either way, this feature doesnt need 5 edits per second.
Vincee
VinceeOP16mo ago
Yup I've been told it can cause problems. I'll just have to do adjustments so it doesn't cause issues. Thanks though
Want results from more Discord servers?
Add your server