discord-interactions.py

blocked_channels

Function

Forbids the command in some channels.

from discord_interactions.slash import blocked_channels

Signature

def blocked_channels(*channel_ids: int) -> Callable

Parameters

NameTypeDefaultDescription
*channel_idsint

Returns

Callable

Type a name: create_button, ModalBuilder, cooldown.