discord-interactions.py

allowed_channels

Function

Restricts the command to some channels.

from discord_interactions.slash import allowed_channels

Signature

def allowed_channels(*channel_ids: int) -> Callable

Parameters

NameTypeDefaultDescription
*channel_idsint

Returns

Callable

Type a name: create_button, ModalBuilder, cooldown.