Fixed some bugs

This commit is contained in:
Choco
2023-05-27 21:04:04 +08:00
parent d4de1ac196
commit 0fb331d3f4
6 changed files with 11 additions and 12 deletions

View File

@@ -64,8 +64,8 @@ class Vocard(commands.Bot):
if not func.settings.version or func.settings.version != update.__version__:
func.update_json(func.root_dir + "/settings.json", new_data={"version": update.__version__})
await bot.tree.set_translator(Translator())
await bot.tree.sync()
await self.tree.set_translator(Translator())
await self.tree.sync()
async def on_ready(self):
print("------------------")