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

9 lines
228 B
Python

from discord.ext import commands
__all__ = ["is_owner"]
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)