mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Force back propagate ids
This commit is contained in:
@@ -285,6 +285,14 @@ export class Message extends BaseClass {
|
||||
// try 2 now that we have a guild
|
||||
if (!opts.member) opts.member = await Member.findOneOrFail({ where: { id: opts.author!.id, guild_id: opts.guild!.id } });
|
||||
|
||||
// backpropagate ids
|
||||
opts.channel_id = opts.channel.id;
|
||||
opts.guild_id = opts.guild.id;
|
||||
opts.author_id = opts.author.id;
|
||||
opts.member_id = opts.member.id;
|
||||
opts.webhook_id = opts.webhook?.id;
|
||||
opts.application_id = opts.application?.id;
|
||||
|
||||
Object.assign(message, {
|
||||
tts: false,
|
||||
embeds: [],
|
||||
|
||||
Reference in New Issue
Block a user