You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Build {buildNumber} has already been announced! If you are sure you want to announce it again, set `force_reannounce` to True.",ephemeral:true);
awaitUnbanUserAsync(ctx.Guild,targetUser,$"[Unban by {DiscordHelpers.UniqueUsername(ctx.User)}]: {reason}");
153
153
awaitctx.RespondAsync(unbanMsg);
@@ -452,15 +452,15 @@ public async Task EditBanCmd(TextCommandContext ctx,
452
452
[RemainingText,Description("The time and reason for the ban. e.g. '14d trolling' NOTE: Add 'appeal' to the start of the reason to include an appeal link")]stringtimeAndReason="No reason specified."
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} There's no record of a ban for that user! Please make sure they're banned or you got the right user.");
@@ -256,9 +263,9 @@ public async Task ClearSlashCommand(SlashCommandContext ctx,
256
263
257
264
if(dryRun)
258
265
{
259
-
varmsg=awaitLogChannelHelper.CreateDumpMessageAsync($"{Program.cfgjson.Emoji.Information} **{messagesToClear.Count}** messages would have been deleted, but are instead logged below.",
266
+
varmsg=(awaitLogChannelHelper.CreateDumpMessageAsync($"{Program.cfgjson.Emoji.Information} **{messagesToClear.Count}** messages would have been deleted, but are instead logged below.",
awaitctx.FollowupAsync(newDiscordFollowupMessageBuilder().WithContent($"{Program.cfgjson.Emoji.Error} There were no messages that matched all of the arguments you provided! Nothing to do."));
297
304
}
298
305
299
-
awaitLogChannelHelper.LogDeletedMessagesAsync(
300
-
"messages",
301
-
$"{Program.cfgjson.Emoji.Deleted} **{messagesToClear.Count}** messages were cleared from {channel.Mention} by {ctx.User.Mention}.",
302
-
messagesToClear,
303
-
channel
304
-
);
306
+
// logging is now handled in the bulk delete event
305
307
308
+
if(!Program.cfgjson.EnablePersistentDb)
309
+
{
310
+
awaitLogChannelHelper.LogDeletedMessagesAsync(
311
+
"messages",
312
+
$"{Program.cfgjson.Emoji.Deleted} **{messagesToClear.Count}** messages were cleared from {channel.Mention} by {ctx.User.Mention}.",
0 commit comments