This commit is contained in:
MathMan05
2026-03-20 16:31:32 +01:00
committed by Rory&
parent 381d554e8f
commit 8f5a1a8a9d
2 changed files with 3 additions and 2 deletions
@@ -128,7 +128,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
return;
case InteractionCallbackType.UPDATE_MESSAGE:
{
if (!interaction.mesageId) throw new HTTPError("no. That was not a message");
if (!interaction.messageId) throw new HTTPError("no. That was not a message");
const message = await Message.findOneOrFail({
relations: {
author: true,
@@ -147,7 +147,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
channel: true,
},
where: {
id: interaction.mesageId,
id: interaction.messageId,
},
});
if (body.data.content && body.data.content.length > Config.get().limits.message.maxCharacters) {
+1
View File
@@ -347,6 +347,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
where: { id: opts.author_id },
});
const rights = await getRights(opts.author_id);
message.author.clean_data();
rights.hasThrow("SEND_MESSAGES");
}