discord-interactions.py

Channel

Fonction

Option salon, filtrable par 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

Paramètres

NomTypeDéfautDescription
namestrrequis
descriptionstrrequis
requiredboolTrue
channel_typesList[int] | NoneNoneTypes acceptés, par exemple ChannelTypes.TEXT_CHANNELS.
localizationsDict[str, Tuple[str, str]] | NoneNone

Retour

ChannelOption

Tape un nom : create_button, ModalBuilder, cooldown.