New sync method
This commit is contained in:
parent
3d41ec1662
commit
07fcbca866
@ -114,6 +114,14 @@ class Owner(commands.Cog):
|
||||
ctx.bot.tree.clear_commands(guild=ctx.guild)
|
||||
await ctx.bot.tree.sync(guild=ctx.guild)
|
||||
synced = []
|
||||
elif spec == '!':
|
||||
await ctx.bot.tree.sync()
|
||||
|
||||
ctx.bot.tree.copy_global_to(guild=ctx.guild)
|
||||
await ctx.bot.tree.sync(guild=ctx.guild)
|
||||
|
||||
ctx.bot.tree.clear_commands(guild=ctx.guild)
|
||||
synced = await ctx.bot.tree.sync(guild=ctx.guild)
|
||||
else:
|
||||
synced = await ctx.bot.tree.sync()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user