Skip to content

Commit

Permalink
Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Aug 25, 2024
1 parent e1987ed commit 121b29b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions extensions/config/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
class ConfigBase(commands.Cog):
def __init__(self, bot: Korii):
self.bot = bot
self.description = "🔎 | For setting up Korii in your server."

group: commands.HybridGroup = commands.hybrid_group(name="config", description="Configure your guild's bot configuration.")
self.description = "🔎 | For setting up Korii in your server."
4 changes: 2 additions & 2 deletions extensions/config/levelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ async def update_message(interaction: Interaction, edit: Optional[bool] = True):


class LevellingConfig(ConfigBase):
@ConfigBase.group.command(description="Configure your guild's levelling system.")
async def levelling(self, interaction: Interaction):
@commands.hybrid_command(description="Configure your guild's levelling system.")
async def levelling_config(self, interaction: Interaction):
return await update_message(interaction, edit=False)
4 changes: 2 additions & 2 deletions extensions/config/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,9 @@ async def interaction_check(self, interaction: discord.Interaction) -> bool:


class LoggingConfig(ConfigBase):
@ConfigBase.group.group(aliases=["logging", "logger"])
@commands.hybrid_group(aliases=["logging", "logger"])
@commands.max_concurrency(1, commands.BucketType.guild)
async def log(self, ctx: CustomContext):
async def logging_config(self, ctx: CustomContext):
"""Base command to manage the logging events.
Run this command without sub-commands to show more detailed information on the logging module"""
Expand Down

0 comments on commit 121b29b

Please sign in to comment.