Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Improve room response embed #9

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PythonTryHard
Copy link

This PR addresses two issues in room response embed:

  1. Too many members
    The bot will send the following errors if the Players field exceeds 1024 bytes due to too many members:
Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.0.value: Must be 1024 or fewer in length.

This PR addressess this by capping the amount of member shown to 5, and add in a "and ... more" message. This comes with some minor refactoring.

  1. Incorrect capitalisation
    Some field name in the room response embed is not capitalised correctly. This PR also improves this as well.

@PythonTryHard PythonTryHard marked this pull request as draft July 14, 2022 20:24
@PythonTryHard
Copy link
Author

PR updated to draft due to a similar bug glossed over due to lack of testing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant