Update positive method in Checks class to allow zero as a valid input, enhancing validation logic for user input.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
This commit is contained in:
parent
3794068ae5
commit
f80c66e1c1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Checks:
|
|||
return False
|
||||
|
||||
def positive(self, m):
|
||||
return self.same(m) and m.content.isdigit() and int(m.content) > 0
|
||||
return self.same(m) and m.content.isdigit() and int(m.content) >= 0
|
||||
|
||||
def role(self, m):
|
||||
roles = [r.name for r in self.ctx.guild.roles if r.name != "Bot"]
|
||||
|
|
Loading…
Add table
Reference in a new issue