Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 10, 2024
1 parent 00b5eff commit d0f08b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/messages/Messages.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
Expand Down

0 comments on commit d0f08b7

Please sign in to comment.