diff --git a/worker/lib/guild/verify/message.ex b/worker/lib/guild/verify/message.ex index cbedaf06..6be280fc 100644 --- a/worker/lib/guild/verify/message.ex +++ b/worker/lib/guild/verify/message.ex @@ -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", @@ -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