Skip to content

Commit 227f454

Browse files
#insiders-info: Fix applying roles when user has a managed role
1 parent f21ccb9 commit 227f454

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Events/InteractionEvents.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ await LogChannelHelper.LogDeletedMessagesAsync(
283283
}
284284
}
285285

286-
await member.ReplaceRolesAsync(memberRoles, "Applying Insider roles chosen in #insiders-info");
286+
// Apply roles
287+
await member.ModifyAsync(x => x.Roles = memberRoles);
287288

288289
await e.Interaction.CreateFollowupMessageAsync(new DiscordFollowupMessageBuilder().WithContent($"{cfgjson.Emoji.Success} Your Insider roles have been updated!").AsEphemeral(true));
289290
}

0 commit comments

Comments
 (0)