We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59589b4 commit d0c3265Copy full SHA for d0c3265
Commands/UtilityCmds.cs
@@ -194,6 +194,12 @@ await LogChannelHelper.LogMessageAsync("secret",
194
[RequireHomeserverPerm(ServerPermLevel.Moderator), RequirePermissions(DiscordPermission.ModerateMembers)]
195
public async Task BulkLogsCmd(CommandContext ctx, [Parameter("user"), Description("The user you're looking for bulk logs containing")] DiscordUser user)
196
{
197
+ if (!Program.cfgjson.EnablePersistentDb)
198
+ {
199
+ await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Database support is not enabled, so this command does nothing.");
200
+ return;
201
+ }
202
+
203
if (ctx is SlashCommandContext)
204
await ctx.As<SlashCommandContext>().DeferResponseAsync(ephemeral: false);
205
0 commit comments