Default Permissions
Hello! As i do slash commands only, is it possible to set the Default Permission, so that the guild admins can override perms if they want?
Solution:Jump to solution
```ts
import { Command, type ChatInputCommand } from '@sapphire/framework';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { PermissionFlagsBits } from 'discord-api-types/v10';
...
4 Replies
I dont want to hardcode perms like that
requiredXPermissions are sapphire preconditions, not slash permissions. Set default permissions for slash commands in the registry function where you assign the other properties for the command.
Other than that, no those precondition properties cannot be set to a default for all commands.
How would i do this in the registry?
currently i have it like that
Solution