didier/didier/utils/discord/checks/message_commands.py

9 lines
228 B
Python
Raw Normal View History

2022-06-30 21:17:48 +02:00
from discord.ext import commands
2022-07-11 22:23:38 +02:00
__all__ = ["is_owner"]
2022-06-30 21:17:48 +02:00
async def is_owner(ctx: commands.Context) -> bool:
"""Check that a command is being invoked by the owner of the bot"""
return await ctx.bot.is_owner(ctx.author)