discord-interactions.py

section

Function

Shortcut for SectionBuilder with its texts.

from discord_interactions import section

Signature

def section(*texts: Any) -> SectionBuilder

Parameters

NameTypeDefaultDescription
*textsAny

Returns

SectionBuilder

Example

from discord_interactions import create_button, section ligne = section("**Notifications**", "Reçois un message à chaque annonce.").button(    create_button("notif", "Activer", style="secondary"))

Type a name: create_button, ModalBuilder, cooldown.