discord-interactions.py

allowed_guilds

Function

Restricts the command to some guilds.

from discord_interactions.slash import allowed_guilds

Signature

def allowed_guilds(*guild_ids: int) -> Callable

Parameters

NameTypeDefaultDescription
*guild_idsint

Returns

Callable

Type a name: create_button, ModalBuilder, cooldown.