Skip to content

Commit

Permalink
move localization up
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Oct 24, 2024
1 parent 4f8443d commit 9cccdd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/sysmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2274,11 +2274,11 @@ def update_toml(old, new):
except:
self.logger.warning(cog+' could not be reloaded.')
embed.set_footer(text=f':warning: {selector.get("reload_warning")}')
await self.bot.discover_application_commands()
await self.bot.register_new_application_commands()
self.logger.info('Updating localization')
self.bot.langmgr = langmgr.LanguageManager(self.bot)
self.bot.langmgr.load()
await self.bot.discover_application_commands()
await self.bot.register_new_application_commands()
self.logger.info('Upgrade complete')
embed.title = f'{self.bot.ui_emojis.success} {selector.get("success_title")}'
embed.description = selector.get("success_body")
Expand Down

0 comments on commit 9cccdd7

Please sign in to comment.