예제 #1
0
        public async Task ReloadTranslations()
        {
            await ReplyAsync("Reloading...");

            try
            {
                await TranslationManager.LoadTranslations();
            }
            catch (Exception e)
            {
                await ReplyAsync($"Reloaded with exception: ```{e}```");

                Logger.GetLogger(this).Warning("Failed to load translations:", e);
                return;
            }
            await ReplyAsync("Reloaded! Check the log for possible warnings");
        }