fix: fall back to undefined in message create

This commit is contained in:
Rory&
2026-03-07 02:09:32 +01:00
parent 26879a274f
commit 47b2460dce
+1
View File
@@ -104,6 +104,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
type: opts.type ?? 0,
mentions: [],
components: opts.components ?? undefined, // Fix Discord-Go?
message_reference: opts.message_reference ?? undefined,
});
const ephermal = (message.flags & (1 << 6)) !== 0;
if (!ephermal && channel.type === ChannelType.GUILD_PUBLIC_THREAD) {