Conditions | 1 |
Total Lines | 11 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Shared functions between cogs and main program""" |
||
14 | async def check_admin(ctx) -> bool: |
||
15 | """Check Admin |
||
16 | |||
17 | Checks to see if message author is in bot_admins table |
||
18 | |||
19 | :param ctx: |
||
20 | :type ctx: discord.ext.commands.Context |
||
21 | :return: Message author is in bot_admins. |
||
22 | :rtype: bool |
||
23 | """ |
||
24 | return ctx.message.author.id in [int(user_id) for user_id in await fetch("bot_admins", "id")] |
||
25 | |||
57 |