Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a decorater rather than Innwhitelistcheckfailure. #79

Open
Inheritanc-e opened this issue Jan 20, 2021 · 0 comments
Open

Use a decorater rather than Innwhitelistcheckfailure. #79

Inheritanc-e opened this issue Jan 20, 2021 · 0 comments

Comments

@Inheritanc-e
Copy link

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.

@Inheritanc-e Inheritanc-e changed the title Use a decorater rather than inwhitelistcheckfailure. Use a decorater rather than Innwhitelistcheckfailure. Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant