Skip to content

Commit

Permalink
Create AutoShardedBot subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Apr 2, 2024
1 parent 05860a8 commit 2e3e737
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pycord/multicog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import discord
from discord.utils import get

__all__ = ("subcommand", "Bot")
__all__ = ("subcommand", "Bot", "AutoShardedBot")

MulticogMeta = namedtuple("MultiCogCommand", ["group", "independent", "group_options"])

Expand Down Expand Up @@ -126,3 +126,9 @@ def remove_application_command(
return

return super().remove_application_command(command)


class AutoShardedBot(discord.AutoShardedBot, Bot):
"""A subclass of `discord.AutoShardedBot` that supports splitting
command groups into multiple cogs.
"""

0 comments on commit 2e3e737

Please sign in to comment.