Implement slash command synchronization features in environment files and update command definitions to hybrid commands across various cogs. Enhance command registration for improved user experience and streamline command handling in the bot.
This commit is contained in:
@@ -293,7 +293,7 @@ class Leveling (commands .Cog ):
|
||||
self .last_level_cache ={}
|
||||
self .db_path =db_path("leveling.db")
|
||||
|
||||
@commands.group (name ="level",invoke_without_command =True ,description ="Leveling system")
|
||||
@commands.hybrid_group (name ="level",invoke_without_command =True ,description ="Leveling system")
|
||||
async def level (self ,ctx ):
|
||||
"""Main leveling command"""
|
||||
if ctx .invoked_subcommand is None :
|
||||
|
||||
Reference in New Issue
Block a user