From d0f08b71ab44cce8ef8a516e13ebcc2940c6fccd Mon Sep 17 00:00:00 2001 From: 0-don Date: Tue, 10 Dec 2024 23:20:00 +0100 Subject: [PATCH] test --- src/lib/messages/Messages.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/messages/Messages.service.ts b/src/lib/messages/Messages.service.ts index 077a7199..441e7b56 100644 --- a/src/lib/messages/Messages.service.ts +++ b/src/lib/messages/Messages.service.ts @@ -140,7 +140,9 @@ export class MessagesService { await message.member?.roles.add(role); const messages = - LEVEL_MESSAGES[role.name as keyof typeof LEVEL_MESSAGES]; + LEVEL_MESSAGES[ + role.name.toUpperCase() as keyof typeof LEVEL_MESSAGES + ]; const randomMessage = messages[ Math.floor(Math.random() * messages.length) ]