-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add [Discord] badge #977
Add [Discord] badge #977
Conversation
service-tests/discord.js
Outdated
|
||
t.create('invalid server ID') | ||
.get('/12345.json') | ||
.expectJSON({ name: 'chat', value: 'inaccessible' }); |
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.
Is there a way to distinguish "room not found" from other types of errors? That could be a more helpful error message.
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.
Oh, good idea. Their server returns a 404 error for invalid rooms, so I could display "invalid" rather than "inaccessible".
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.
Okay, I revised the pull request to handle this case separately. Let me know if it looks good :D
- Add test case for 500 errors
Hi @Daniel15! As a follow-up, could you add instructions to get the server ID in a |
Adds a badge for Discord, along with a test.
For reference, their official badge looks like this: