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 poll_result to EmbedType #187

Closed
wants to merge 1 commit into from
Closed

Add poll_result to EmbedType #187

wants to merge 1 commit into from

Conversation

LonelyDeathVGX
Copy link
Contributor

@LonelyDeathVGX LonelyDeathVGX commented Aug 2, 2024

@DonovanDMC
Copy link
Member

There's a lot more to it than just an embed type

@LonelyDeathVGX
Copy link
Contributor Author

I was looking about the embed fields of type "poll_result", then I decided to use the getMessage method, and apparently, it already returns an array of embeds with the corresponding fields 🤔

[
  { inline: false, name: 'poll_question_text', value: 'test' },
  { inline: false, name: 'victor_answer_votes', value: '1' },
  { inline: false, name: 'total_votes', value: '1' },
  { inline: false, name: 'victor_answer_id', value: '1' },
  { inline: false, name: 'victor_answer_text', value: '1' }
]

So, that's why I decided to add only that type of embed 😅

You can try to get a message of that type and you will see that it will possibly return an embed of type "poll_result"

@DonovanDMC DonovanDMC closed this in fad8c12 Aug 3, 2024
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.

2 participants