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
@@ -384,13 +384,13 @@ public async Task EditAnnounce(
384
384
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} That message ID wasn't recognised!",ephemeral:true);
385
385
return;
386
386
}
387
-
387
+
388
388
if(msg.Author.Id!=ctx.Client.CurrentUser.Id)
389
389
{
390
390
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} That message wasn't sent by me, so I can't edit it!",ephemeral:true);
391
391
return;
392
392
}
393
-
393
+
394
394
// Validate roles
395
395
if(!Program.cfgjson.AnnouncementRoles.ContainsKey(role1Name)||(role2Nameis not null&&!Program.cfgjson.AnnouncementRoles.ContainsKey(role2Name)))
396
396
{
@@ -402,12 +402,12 @@ public async Task EditAnnounce(
402
402
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Warning} You provided the same role name twice! Did you mean to use two different roles?",ephemeral:true);
awaitctx.RespondWithModalAsync(newDiscordInteractionResponseBuilder().WithTitle("Edit Announcement").WithCustomId("editannounce-modal-callback").AddTextInputComponent(newDiscordTextInputComponent("New announcement text. Do not include roles!","editannounce-modal-new-text",value:msg.Content,style:DiscordTextInputStyle.Paragraph)));
408
+
awaitctx.RespondWithModalAsync(newDiscordModalBuilder().WithTitle("Edit Announcement").WithCustomId("editannounce-modal-callback").AddTextInput(newDiscordTextInputComponent("editannounce-modal-new-text",style:DiscordTextInputStyle.Paragraph,value:msg.Content),"New announcement text. Do not include roles!"));
409
409
}
410
-
410
+
411
411
[Command("announce")]
412
412
[Description("Announces something in the current channel, pinging an Insider role in the process.")]
@@ -441,7 +441,7 @@ public async Task BankeepCmd(TextCommandContext ctx,
441
441
}
442
442
}
443
443
}
444
-
444
+
445
445
[Command("editbantextcmd")]
446
446
[TextAlias("editban")]
447
447
[Description("Edit the details of a ban. Updates the DM to the user, among other things.")]
@@ -457,39 +457,39 @@ public async Task EditBanCmd(TextCommandContext ctx,
457
457
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.");
newCtxMsg=$"{Program.cfgjson.Emoji.Banned}{targetUser.Mention} has been banned: **{reason}**";
484
484
else
485
485
newCtxMsg=$"{Program.cfgjson.Emoji.Banned}{targetUser.Mention} has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration,false)}**: **{reason}**";
486
-
486
+
487
487
if(contextMessage.Content.Contains("-# This user's messages have been kept."))
488
488
newCtxMsg+="\n-# This user's messages have been kept.";
489
-
489
+
490
490
awaitcontextMessage.ModifyAsync(newCtxMsg);
491
491
}
492
-
492
+
493
493
if(dmMessageis not null)
494
494
{
495
495
if(ban.ExpireTime==null)
@@ -511,12 +511,12 @@ public async Task EditBanCmd(TextCommandContext ctx,
511
511
awaitdmMessage.ModifyAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}** for {TimeHelpers.TimeToPrettyFormat(banDuration,false)}!\nReason: **{reason}**\nBan expires: <t:{TimeHelpers.ToUnixTimestamp(ban.ExpireTime)}:R>");
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error}{member.Mention} is quarantined because their name is in violation of AutoMod rules! Discord will not let me dehoist them. Please change their nickname manually.",ephemeral:true);
30
+
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error}{member.Mention} is quarantined because their profile is in violation of AutoMod rules! Discord will not let me dehoist them. Please change their nickname manually.",ephemeral:true);
31
31
return;
32
32
}
33
33
@@ -192,7 +192,7 @@ public async Task MassUndhoist(TextCommandContext ctx)
0 commit comments