discord-interactions.py

Channel

Function

Channel option, filterable by type.

from discord_interactions import Channel

Signature

def Channel(    name: str,    description: str,    *,    required: bool = True,    channel_types: List[int] | None = None,    localizations: Dict[str, Tuple[str, str]] | None = None,) -> ChannelOption

Parameters

NameTypeDefaultDescription
namestrrequired
descriptionstrrequired
requiredboolTrue
channel_typesList[int] | NoneNoneAccepted types, for example ChannelTypes.TEXT_CHANNELS.
localizationsDict[str, Tuple[str, str]] | NoneNone

Returns

ChannelOption

Type a name: create_button, ModalBuilder, cooldown.