mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): correct permission check logic
Members were being previously treated as users and some requirements are passing by default when they must not.
This commit is contained in:
@@ -373,7 +373,7 @@ export default class Command<
|
||||
memberRequirementsForUsers = 'pass',
|
||||
} = this.requirements
|
||||
|
||||
const member = this.isGuildSpecific() ? null : (executor as GuildMember)
|
||||
const member = this.isGuildSpecific() ? (executor as GuildMember) : null
|
||||
const boolDefaultCondition = defaultCondition !== 'fail'
|
||||
const boolMemberRequirementsForUsers = memberRequirementsForUsers !== 'fail'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user