discord-interactions.py

dm_only

Function

Command usable in direct messages only.

from discord_interactions.slash import dm_only

Signature

def dm_only() -> Callable

Returns

Callable

Type a name: create_button, ModalBuilder, cooldown.