Skip to content

Commit c9e052c

Browse files
committed
add message id to delete logs
1 parent 6d9758e commit c9e052c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Helpers/DiscordHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ public static async Task<DiscordMessageBuilder> GenerateMessageRelay(DiscordMess
275275
return new DiscordMessageBuilder().AddEmbeds(embeds.AsEnumerable());
276276
}
277277

278-
public static async Task<DiscordMessageBuilder> GenerateMessageRelay(Models.CachedDiscordMessage message, string type, bool channelRef = true, bool showChannelId = true, Models.CachedDiscordMessage oldMessage = null)
278+
public static async Task<DiscordMessageBuilder> GenerateMessageRelay(Models.CachedDiscordMessage message, string type, bool channelRef = true, bool showChannelId = true, Models.CachedDiscordMessage oldMessage = null, bool showMessageId = true)
279279
{
280280
var channel = await Program.homeGuild.GetChannelAsync(message.ChannelId);
281281
DiscordEmbedBuilder embed = new DiscordEmbedBuilder()
282282
.WithAuthor($"Message by {message.User.DisplayName}{(channelRef ? $" was {type} in #{channel.Name}" : "")}", null, message.User.AvatarUrl)
283-
.WithFooter($"{(showChannelId ? $"Channel ID: {message.ChannelId} | " : "")}User ID: {message.User.Id}");
283+
.WithFooter($"{(showChannelId ? $"Channel ID: {message.ChannelId} | " : "")}User ID: {message.User.Id} {(showMessageId ? $" | Message ID: {message.Id}" : "")}");
284284

285285
if (message.AttachmentURLs.Count > 0)
286286
embed.WithImageUrl(message.AttachmentURLs[0])

0 commit comments

Comments
 (0)