NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| @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() |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].