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:
@@ -50,7 +50,7 @@ class Birthdays(commands.Cog):
|
||||
self.client = client
|
||||
self.check_birthdays.start()
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="birthdaysetup",
|
||||
help="Set up the birthday log channel and role.")
|
||||
@commands.has_permissions(administrator=True)
|
||||
@@ -69,7 +69,7 @@ class Birthdays(commands.Cog):
|
||||
|
||||
await ctx.send(view=CV2("Birthday Setup", f"Birthday log channel set to {channel.mention} and birthday role set to {role.mention}."))
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="setbirthday",
|
||||
help="Set your birthday.")
|
||||
@commands.guild_only()
|
||||
@@ -112,7 +112,7 @@ class Birthdays(commands.Cog):
|
||||
except asyncio.TimeoutError:
|
||||
await ctx.send(view=CV2("Error", "You took too long to respond. Please try again."))
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="removebirthday",
|
||||
help="Remove your birthday.")
|
||||
@commands.guild_only()
|
||||
@@ -126,7 +126,7 @@ class Birthdays(commands.Cog):
|
||||
else:
|
||||
await ctx.send(view=CV2("Error", "You have no birthday set."))
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="listbirthdays",
|
||||
help="List all members who have their birthday today.")
|
||||
@commands.guild_only()
|
||||
@@ -143,7 +143,7 @@ class Birthdays(commands.Cog):
|
||||
else:
|
||||
await ctx.send(view=CV2("Birthdays", "No birthdays today."))
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="birthday",
|
||||
help="Check your birthday.")
|
||||
@commands.guild_only()
|
||||
|
||||
Reference in New Issue
Block a user