Closed StormWalkerOnGitHub closed 3 years ago
Discord.py handles this internally with rate limit buckets, so you're never hitting the Discord servers -- which means no need to worry about it in general. The reason this happens is because buttons are being added just slightly faster than the limit. Generally this should only appear if you're adding more than 4 or 5 buttons to a menu in quick succession, so a bit weird it got you for the default PaginatedMenu.
That said, because this has been a recurring question, this will be addressed in the next version with a higher default (and user adjustable) delay to alleviate these issues.
This has been popping up when clicking the cancel menu reaction. Was curious what I can do with the library to prevent this library from getting me rate limited.
Bot has no previous history of being rate limited before the menu library was implemented into the code.
My code for my cog below is as follows currently: import discord import typing
from discord.ext import commands from dpymenus import Page, PaginatedMenu `
Help Command
class Help(commands.Cog): def init(self, client): self.client = client
`