Skip to content
Discussion options

You must be logged in to vote

Hello, this is because the is_owner method only returns a bool, rather than an exception like the built in is_owner check.

You can modify your cog_check to instead of simply returning a bool, which will make the library raise CheckFailure, raise the NotOwner error yourself to handle it elsewhere.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Soheab
Comment options

@aurkaxi
Comment options

Answer selected by aurkaxi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants