Skip to content

Instantly share code, notes, and snippets.

@Painezor
Painezor / Checks.py
Last active November 1, 2024 18:21
Built-in Checks for the commands extension of discord py
@commands.guild_only()
# Command cannot be used in private messages.
@commands.dm_only()
# Command can only be used in private messages.
@commands.is_owner()
# Command can only be used by the bot owner.
@commands.is_nsfw()