summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-07-09 14:55:01 +0200
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2024-07-09 22:58:10 +1000
commit9b02e82614403d11b463217b2867b127ff3305f2 (patch)
tree823751a2297e7dd8a48a02515781cf12419a7c82 /src/api
parentMerge pull request #1138 from DEVTomatoCake/fix/connection-redirect-uri (diff)
downloadserver-ts-9b02e82614403d11b463217b2867b127ff3305f2.tar.xz
Make poll a single object instead of an array
Diffstat (limited to 'src/api')
-rw-r--r--src/api/util/handlers/Message.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index 64bcdd56..325a7e1a 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ @@ -66,7 +66,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { : undefined; const message = Message.create({ ...opts, - poll: opts.poll ? [opts.poll] : undefined, + poll: opts.poll, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id,