discord-interactions.py

NotInGuild

Exception

Command restricted to guilds.

from discord_interactions.slash import NotInGuild

Extends SlashCommandError

Constructor

NotInGuild(command_name: str)
NameTypeDefaultDescription
command_namestrrequired

Type a name: create_button, ModalBuilder, cooldown.