Skip to content

Commit

Permalink
guild log: only include owner info on guild join
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed May 6, 2024
1 parent f1ca5e3 commit cbfe58c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Events/GuildEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ private static async Task SendGuildEventLogEmbed(DiscordChannel chan, DiscordGui

embed.AddField("Server", $"{guild.Name}\n(`{guild.Id}`)", true);
embed.AddField("Members", guild.MemberCount.ToString(), true);

// Only send owner info on join; will fail to fetch on leave
if (!isJoin) return;

DiscordEmbedBuilder userInfoEmbed;
try
Expand Down

0 comments on commit cbfe58c

Please sign in to comment.