Skip to content

Commit 06510e1

Browse files
codekm92Misha-133
andauthored
fixed error on changing role icon/emoji to an image. (#3192)
* fixed error on changing role icon/emoji to an image. * Update src/Discord.Net.Rest/Entities/Roles/RoleHelper.cs --------- Co-authored-by: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com>
1 parent f205bba commit 06510e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord.Net.Rest/Entities/Roles/RoleHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static async Task<Model> ModifyAsync(IRole role, BaseDiscordClient client
4040

4141
if ((args.Icon.IsSpecified && args.Icon.Value != null) && role.Emoji != null)
4242
{
43-
apiArgs.Emoji = "";
43+
apiArgs.Emoji = Optional<string>. Unspecified;
4444
}
4545

4646
if ((args.Emoji.IsSpecified && args.Emoji.Value != null) && !string.IsNullOrEmpty(role.Icon))

0 commit comments

Comments
 (0)