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

Add [Discord] badge #977

Merged
merged 2 commits into from
May 1, 2017
Merged

Add [Discord] badge #977

merged 2 commits into from
May 1, 2017

Conversation

Daniel15
Copy link
Member

Adds a badge for Discord, along with a test.

For reference, their official badge looks like this:


t.create('invalid server ID')
.get('/12345.json')
.expectJSON({ name: 'chat', value: 'inaccessible' });
Copy link
Member

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.

Copy link
Member Author

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".

Copy link
Member Author

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

@paulmelnikow
Copy link
Member

Build failed due to #979.

@paulmelnikow paulmelnikow changed the title Add Discord badge Add [Discord] badge Apr 30, 2017
@paulmelnikow paulmelnikow added the service-badge Accepted and actionable changes, features, and bugs label Apr 30, 2017
- Add test case for 500 errors
@Daniel15 Daniel15 merged commit 87af3bf into badges:master May 1, 2017
@Daniel15 Daniel15 deleted the discord branch May 1, 2017 04:54
@espadrine
Copy link
Member

Hi @Daniel15!

As a follow-up, could you add instructions to get the server ID in a data-doc in try.html please?

@paulmelnikow paulmelnikow added this to the Next Deploy milestone May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants