#integration of commands
1 messages · Page 1 of 1 (latest)
Bot's cannot easily control integration settings.
Best you can do is use
-d commands.default_member_permissions
@disnake.ext.commands.default_member_permissions(value=0, **permissions)```
A decorator that sets default required member permissions for the command. Unlike [`has_permissions()`](https://docs.disnake.dev/en/latest/ext/commands/api/checks.html#disnake.ext.commands.has_permissions "disnake.ext.commands.has_permissions"), this decorator does not add any checks. Instead, it prevents the command from being run by members without *all* required permissions, if not overridden by moderators on a guild-specific basis.
See also the `default_member_permissions` parameter for application command decorators.
Note
This does not work with slash subcommands/groups.
Example
This would only allow members with [`manage_messages`](https://docs.disnake.dev/en/latest/api/permissions.html#disnake.Permissions.manage_messages "disnake.Permissions.manage_messages") *and* [`view_audit_log`](https://docs.disnake.dev/en/latest/api/permissions.html#disnake.Permissions.view_audit_log "disnake.Permissions.view_audit_log") permissions to use the command by default, however moderators can override this and allow/disallow specific users and roles to use the command in their guilds regardless of this setting.