Merge remote-tracking branch 'DEVTomatoCake/fix/getPublicUser-no-defaults'

This commit is contained in:
Rory&
2025-12-17 11:28:29 +01:00
8 changed files with 21 additions and 18 deletions
+3 -1
View File
@@ -158,7 +158,9 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
}
if (opts.author_id) {
message.author = await User.getPublicUser(opts.author_id);
message.author = await User.findOneOrFail({
where: { id: opts.author_id },
});
const rights = await getRights(opts.author_id);
rights.hasThrow("SEND_MESSAGES");
}