Skip to content

Commit

Permalink
remove unnecessary @everyone validation (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 authored Aug 10, 2023
1 parent a421715 commit 5c8d83c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Discord.Net.Rest/DiscordRestApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1926,8 +1926,6 @@ public async Task ModifyGuildMemberAsync(ulong guildId, ulong userId, Rest.Modif

bool isCurrentUser = userId == CurrentUserId;

if (args.RoleIds.IsSpecified)
Preconditions.NotEveryoneRole(args.RoleIds.Value, guildId, nameof(args.RoleIds));
if (isCurrentUser && args.Nickname.IsSpecified)
{
var nickArgs = new Rest.ModifyCurrentUserNickParams(args.Nickname.Value ?? "");
Expand Down

0 comments on commit 5c8d83c

Please sign in to comment.