discord-interactions.py

contexts

Function

Where the command can be used: guilds, DMs with the bot, private groups.

from discord_interactions.slash import contexts

Signature

def contexts(*values: int) -> Callable

Parameters

NameTypeDefaultDescription
*valuesint

Returns

Callable

Type a name: create_button, ModalBuilder, cooldown.