Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiChan99 committed Nov 20, 2023
1 parent 214a6d1 commit aad700d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Commands/Moderation/ExtendedModerationSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,18 @@ await args.Interaction.CreateResponseAsync(InteractionResponseType.ChannelMessag
}
else if (c_user.Id == a_user.Id)
{
// remove button from embed
var embed = args.Message.Embeds.First();
var component = args.Message.Components.First();
var mb = new DiscordMessageBuilder();
mb.AddEmbed(embed);
await args.Message.ModifyAsync(mb);
await args.Interaction.CreateResponseAsync(InteractionResponseType.ChannelMessageWithSource,
new DiscordInteractionResponseBuilder()
.WithContent("Der Warn wurde zur Kenntnis genommen!")
.AsEphemeral());
await Task.Delay(TimeSpan.FromSeconds(10));
await args.Channel.DeleteAsync("Warn wurde zur Kenntnis genommen.");
await Task.Delay(TimeSpan.FromSeconds(30));
await args.Channel.DeleteAsync("Warn wurde zur Kenntnis genommen. Dieser Channel wird nach 30 Sekunden gelöscht.");
}
}
Expand Down

0 comments on commit aad700d

Please sign in to comment.