Skip to content

Commit

Permalink
Remove permissions check
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 committed Dec 25, 2024
1 parent b1d6b90 commit 8e6a114
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/discord/commands/guild/d.watchuser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ export const dWatchUser: SlashCommand = {
return false;
}

if (!(interaction.member as GuildMember).roles.cache.some(
(role: Role) => (role.id === env.ROLE_MODERATOR || role.id === env.DEVELOPER),
)) {
await interaction.reply('You do not have permission to use this command.');
return false;
}

const targetUser = interaction.options.getUser('target', true);

if (interaction.options.getSubcommand() === 'cancel') {
Expand Down

0 comments on commit 8e6a114

Please sign in to comment.