discord-interactions.py

get_base_custom_id

Function

Part of a custom_id before the first :.

from discord_interactions import get_base_custom_id

Signature

def get_base_custom_id(custom_id: str) -> str

Parameters

NameTypeDefaultDescription
custom_idstrrequired

Returns

str

Type a name: create_button, ModalBuilder, cooldown.