mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
feat: inherit defaultMemberPermissions from the parent command
This commit is contained in:
parent
baad784477
commit
9c2b37316a
@ -265,6 +265,7 @@ export class CommandHandler extends BaseHandler {
|
||||
commandInstance.onPermissionsFail?.bind(commandInstance) ??
|
||||
this.client.options?.commands?.defaults?.onPermissionsFail;
|
||||
option.botPermissions ??= commandInstance.botPermissions;
|
||||
option.defaultMemberPermissions ??= commandInstance.defaultMemberPermissions;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user