discord-interactions.py

NSFWChannelRequired

Exception

Command restricted to NSFW channels.

from discord_interactions.slash import NSFWChannelRequired

Extends SlashCommandError

Constructor

NSFWChannelRequired(command_name: str)
NameTypeDefaultDescription
command_namestrrequired

Type a name: create_button, ModalBuilder, cooldown.