Channel
Fonction
Option salon, filtrable par type.
from discord_interactions import ChannelSignature
def Channel( name: str, description: str, *, required: bool = True, channel_types: List[int] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None,) -> ChannelOptionParamètres
| Nom | Type | Défaut | Description |
|---|---|---|---|
name | str | requis | |
description | str | requis | |
required | bool | True | |
channel_types | List[int] | None | None | Types acceptés, par exemple ChannelTypes.TEXT_CHANNELS. |
localizations | Dict[str, Tuple[str, str]] | None | None |
Retour
ChannelOption