3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: suggestion

Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
rubyowo 2024-06-02 16:23:57 +00:00 committed by GitHub
parent 01332af1fb
commit 9aca2d5f26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ export class GuildSavedMessages extends BaseGuildRepository<SavedMessage> {
if (msg.poll) {
data.poll = {
question: msg.poll.question,
answers: Array.from(msg.poll.answers.values()).map((answer) => ({
answers: msg.poll.answers.map((answer) => ({
id: answer.id,
text: answer.text,
})),