-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Deploying with Cloudflare Pages
|
|
||
parsed_options: list[tuple[str, str]] = [(obj.emoji, t.select.label(ix)) for ix, obj in enumerate(options, start=1)] | ||
|
||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use an if condition instead of this try-excpet-thing here (check for permissions first)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem with that is, that its not about the permission, its about the maximum pins per channel https://docs.pycord.dev/en/master/api.html?highlight=HTTPException%20pin#discord.Message.pin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplify code
Here's my comment so where is my money now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want my money please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there you got at least some minor things to fix; have fun
if _weight and weight < (_weight := float(_weight)): | ||
weight = _weight | ||
|
||
return weight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please dont calll it weight
and _weight
, thats very unreadable
Code Climate has analyzed commit 8f9609c and detected 0 issues on this pull request. View more on Code Climate. |
Description
Poll rewrite
Issue
Closes #140 #162