Skip to content

Commit 5c8d83c

Browse files
authored
remove unnecessary @everyone validation (#2712)
1 parent a421715 commit 5c8d83c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Discord.Net.Rest/DiscordRestApiClient.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,8 +1926,6 @@ public async Task ModifyGuildMemberAsync(ulong guildId, ulong userId, Rest.Modif
19261926

19271927
bool isCurrentUser = userId == CurrentUserId;
19281928

1929-
if (args.RoleIds.IsSpecified)
1930-
Preconditions.NotEveryoneRole(args.RoleIds.Value, guildId, nameof(args.RoleIds));
19311929
if (isCurrentUser && args.Nickname.IsSpecified)
19321930
{
19331931
var nickArgs = new Rest.ModifyCurrentUserNickParams(args.Nickname.Value ?? "");

0 commit comments

Comments
 (0)