summary refs log tree commit diff
path: root/src/api/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/util')
-rw-r--r--src/api/util/handlers/Message.ts2
-rw-r--r--src/api/util/utility/polls.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index 03e89d727..5f4cbf44c 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -317,7 +317,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { const message = Message.create({ ...opts, message_reference: opts.message_reference ?? undefined, - poll: opts.poll, + poll: opts.poll ?? undefined, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id, diff --git a/src/api/util/utility/polls.ts b/src/api/util/utility/polls.ts
index 549726c13..bc1bb9540 100644 --- a/src/api/util/utility/polls.ts +++ b/src/api/util/utility/polls.ts
@@ -27,7 +27,7 @@ export async function generatePollResultsMessage(options: MessageOptions): Promi const message = Message.create({ ...options, message_reference: options.message_reference ?? undefined, - poll: options.poll, + poll: options.poll ?? undefined, // sticker_items: stickers, // guild_id: options.guild_id, channel_id: options.channel_id,