mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
fix: fall back to undefined in message create
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user