-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixed Issues #274
Fixed Issues #274
Conversation
Fixed : Access to a protected member _cache of a client class.
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 see the review comments and change it accordingly :)
@@ -35,7 +35,10 @@ def votedTopgg(ctx): | |||
headers={"Authorization": topken}, | |||
) | |||
try: | |||
a_list = True if a.json().get("voted") >= 1 else False | |||
if a.json().get("voted") >= 1: |
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.
hey @Pagasis no need to use if expression here, it would be a memory inefficient then, here remove the if
and else
and do this.
a_list = a.json().get("voted", False)
@@ -2,7 +2,6 @@ | |||
import io | |||
import os | |||
import platform | |||
import random | |||
from random import choice |
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.
here doing still won't fix this issue, here just change the filename to random_fun_games.py
to fix this.
if str(ctx.message.author.id) in c.json().get("hasVoted24", False) | ||
else False | ||
) | ||
if str(ctx.message.author.id) in c.json().get("hasVoted24", False): |
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.
here also no need to do this if
and else
.
just do
c_list = str(ctx.message.author.id) in c.json().get("hasVoted24")
Yeah, i have changed them, you may merge it! |
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.
approved :)
@all-contributors please add @Pagasis for Maintenance |
I've put up a pull request to add @Pagasis! 🎉 |
Fixed issues :
#237 #238 #242 #243 #244 #245
I have also fixed two occurrences of issue # 248 but not mentioning as the whole issue wasn't fixed.
Please consider for hacktoberfest 😄.