Prevent command from being called if it is called in a DM
Prevent command from being called if the caller is not registered as an owner.
This middleware must be paired with the Rules.allowOwner
rule to function
Prevent command from being called if the caller does not have all of the given permissions for the channel in which the command was called.
NOTE: This middleware should only be used when you can guarantee the
command will be called in a guild context. You can accomplish this by using
the guildOnly
middleware first
Prevent command from being called if the client does not have all of the given permissions for the channel in which the command was called
NOTE: This middleware should only be used when you can guarantee the
command will be called in a guild context. You can accomplish this by using
the guildOnly
middleware first
Generated using TypeDoc
Container class that holds middleware for controlling command execution or modifying command execution behavior. All middleware in this class can also be imported directly by name from
@discord-samba/command/middleware