summary refs log tree commit diff
path: root/src/api/util
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-03 19:37:21 -0600
committerRory& <root@rory.gay>2026-02-04 03:25:48 +0100
commiteaa2be281f59ca1aeeee35a09493008146d1a9d3 (patch)
tree1a75f0d28adaae88910bc747a9d477f1fc6b5cef /src/api/util
parentunscrew up (diff)
downloadserver-ts-eaa2be281f59ca1aeeee35a09493008146d1a9d3.tar.xz
some fixes
Diffstat (limited to 'src/api/util')
-rw-r--r--src/api/util/handlers/Message.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index bf1f5e969..f79573697 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -243,7 +243,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { if (opts.message_reference.type != 1) { if (opts.message_reference.guild_id !== channel.guild_id) throw new HTTPError("You can only reference messages from this guild"); - if (opts.message_reference.channel_id !== opts.channel_id && opts.type !== MessageType.THREAD_STARTER_MESSAGE) + if (opts.message_reference.channel_id !== opts.channel_id && opts.type !== MessageType.THREAD_STARTER_MESSAGE && opts.type !== MessageType.THREAD_CREATED) throw new HTTPError("You can only reference messages from this channel"); }