// [CheckForRole] public async Task Reshash() { try { var result = await APIHelper.DiscordAPI.IsAdminAccess(Context); if (!string.IsNullOrEmpty(result)) { await APIHelper.DiscordAPI.ReplyMessageAsync(Context, result, true); return; } SettingsManager.UpdateSettings(); TickManager.LoadModules(); await APIHelper.DiscordAPI.ReplyMessageAsync(Context, "REHASH COMPLETED", true); } catch (Exception ex) { await LogHelper.LogEx("rehash", ex); } }
//[CheckForRole] public async Task Reauth() { try { var result = await APIHelper.DiscordAPI.IsAdminAccess(Context); if (!string.IsNullOrEmpty(result)) { await APIHelper.DiscordAPI.ReplyMessageAsync(Context, result, true); return; } await TickManager.RunModule(typeof(AuthCheckModule), Context, true); await APIHelper.DiscordAPI.ReplyMessageAsync(Context, "Reauth completed!", true); } catch (Exception ex) { await LogHelper.LogEx("reauth", ex); await Task.FromException(ex); } }