gurkult / gurkbot

Our community bot, used for running the server.
MIT License
18 stars 16 forks source link

Use a decorater rather than Innwhitelistcheckfailure. #79

Open Inheritanc-e opened 3 years ago

Inheritanc-e commented 3 years ago

We should use a decorator instead of inwhitelistcheckfailure as it's not callable. This is an example of how it would be used

@channel_check(Channels.bot_commands)
@commands.command(name='something')
async def some_command(ctx): ...

If the bypass_role is not given then bypass_role will be equal to a tuple containing the ids of Supreme Cucumber, Council, and lords.