monkey_patches#
Contains all common monkey patches, used to alter disnake to fit our needs.
- apply_monkey_patches()[source]#
Applies all common monkey patches for our bots.
- Patches
disnake.ext.commands.Commandanddisnake.ext.commands.Groupto support root aliases. A
root_aliaseskeyword argument is added to these two objects, which is a sequence of alias names that will act as top-level groups rather than being aliases of the command’s group.It’s stored as an attribute also named
root_aliases- Patches disnake’s internal
send_typingmethod so that it ignores 403 errors from Discord. When under heavy load Discord has added a CloudFlare worker to this route, which causes 403 errors to be thrown.
- Return type
- Patches