Skip to content

Commit

Permalink
Fix e0f100c
Browse files Browse the repository at this point in the history
Signed-off-by: tiksan <[email protected]>
  • Loading branch information
dssecret committed Sep 29, 2024
1 parent e0f100c commit 81b6772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/lib/guild/verify/message.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ defmodule Tornium.Guild.Verify.Message do
added_roles = MapSet.difference(updated_roles, original_roles)

if updated_member.nick != original_member.nick do
embed = Nostrum.Struct.Embed.put_field(embed, "Nickname", "#{original_member.nick} -> #{updated_member.nick}")
^embed = Nostrum.Struct.Embed.put_field(embed, "Nickname", "#{original_member.nick} -> #{updated_member.nick}")
end

if MapSet.size(removed_roles) > 0 do
embed =
^embed =
Nostrum.Struct.Embed.put_field(
embed,
"Removed Roles",
Expand All @@ -113,7 +113,7 @@ defmodule Tornium.Guild.Verify.Message do
end

if MapSet.size(added_roles) > 0 do
embed =
^embed =
Nostrum.Struct.Embed.put_field(embed, "Added Roles", Tornium.Utils.roles_to_string(MapSet.to_list(added_roles)))
end

Expand Down

0 comments on commit 81b6772

Please sign in to comment.