Skip to content

Commit

Permalink
discord > allow extending perms to other users with slash command perms
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Jan 9, 2024
1 parent bdcbdbf commit c06e9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Discord/Modules/RunCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class RunCommandModule extends Module {
message: `${interaction} @ <#${interaction.channel?.id}>`,
});

// TODO can phase out admin check in favor of guild command overrides
if (!hasPermission)
// Only use for owner-only commands. They should only be accessible in a single server.
if (!hasPermission && cmd.conf.permLevel >= 2)
return cmd.commandError(
interaction,
`Insufficient permissions! Must be **${cmd._permLevelToWord(
Expand Down

0 comments on commit c06e9bd

Please sign in to comment.