Skip to content

Commit

Permalink
Update rolepanelSelect.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gx1285 authored Aug 18, 2024
1 parent d1099e4 commit b44cac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/rolepanelSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default async function (interaction: BaseInteraction) {
await interaction.deferReply({ ephemeral: true });
for (const value of interaction.values) {
const roles = interaction.guild.members.cache.get(interaction.user.id).roles.cache.has(value);
if (roles) await interaction.guild.members.cache.get(interaction.user.id).roles.add(value);
if (!roles) await interaction.guild.members.cache.get(interaction.user.id).roles.add(value);
else continue;
}
await interaction.editReply({
Expand Down

0 comments on commit b44cac6

Please sign in to comment.