Refactor command definitions across multiple cogs to replace hybrid commands with regular commands for consistency. This change enhances clarity and standardizes command handling throughout the bot.
This commit is contained in:
@@ -35,7 +35,7 @@ class FastGreet(commands.Cog):
|
||||
)
|
||||
""")
|
||||
|
||||
@commands.hybrid_command(name="fastgreet_add")
|
||||
@commands.command(name="fastgreet_add")
|
||||
@commands.has_permissions(administrator=True)
|
||||
async def add_greet_channel(self, ctx, channel: discord.TextChannel):
|
||||
with sqlite3.connect(DB_PATH) as conn:
|
||||
@@ -45,7 +45,7 @@ class FastGreet(commands.Cog):
|
||||
""", (ctx.guild.id, channel.id))
|
||||
await ctx.send(f"✅ {channel.mention} added as a greet channel.")
|
||||
|
||||
@commands.hybrid_command(name="fastgreet_remove")
|
||||
@commands.command(name="fastgreet_remove")
|
||||
@commands.has_permissions(administrator=True)
|
||||
async def remove_greet_channel(self, ctx, channel: discord.TextChannel):
|
||||
with sqlite3.connect(DB_PATH) as conn:
|
||||
@@ -54,7 +54,7 @@ class FastGreet(commands.Cog):
|
||||
""", (ctx.guild.id, channel.id))
|
||||
await ctx.send(f"❌ {channel.mention} removed from greet channels.")
|
||||
|
||||
@commands.hybrid_command(name="fastgreet_list")
|
||||
@commands.command(name="fastgreet_list")
|
||||
async def list_greet_channels(self, ctx):
|
||||
with sqlite3.connect(DB_PATH) as conn:
|
||||
cursor = conn.execute("""
|
||||
|
||||
Reference in New Issue
Block a user