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

Adding nil protection for response #115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

TakenMC
Copy link

@TakenMC TakenMC commented Jun 24, 2023

Made it so in case the response is nil it would not crash
If response is not nil it will print the username

@latipun7
Copy link

latipun7 commented Jul 1, 2023

This really fixed the issue #88 that I have.

Closes #88

Copy link

@kubakakauko kubakakauko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed My issue #88 on macOs and Niched

@haru02w
Copy link

haru02w commented Aug 22, 2023

This also works. Don't know if it's bad or not

        self.log:info(string.format("Authorized with Discord for %s",
            response and response.data.user.username or "unknown: no response"))

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

Successfully merging this pull request may close these issues.

4 participants