discordgo
discordgo copied to clipboard
RateLimit for FollowupMessageCreate
Every interaction has unique token, therefore a call of FollowupMessageCreate will create a bucket per interaction. This might cause the bot to OOM eventually.
Originally posted by @wu56781234 in https://github.com/bwmarrin/discordgo/discussions/1332
@FedorLap2006 Do we need bucket for FollowupMessageCreate? Discord API says Create Followup Message are not bound to Application Global Rate Limit. https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints
@FedorLap2006 @bwmarrin regarding this issue, can i submit a merge request?
And also I noticed that current buckets keep growing. To solve this can implement a schedule intervally remove those expired buckets.