Skip to content

Commit

Permalink
Update giveroles.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AHanadsaker authored Jan 25, 2024
1 parent 9165a9e commit 3579f17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/giveroles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,35 @@ export class VerifyCommand extends Command {
switch (user.roles[i].role) {
case "ATM":
roles.push(await interaction.guild?.roles.fetch(config.atm));
await member.setNickname(`${user.fname} ${user.lname} | ATM`);
break;
case "DATM":
roles.push(await interaction.guild?.roles.fetch(config.datm));
await member.setNickname(`${user.fname} ${user.lname} | DATM`);
break;
case "TA":
roles.push(await interaction.guild?.roles.fetch(config.ta));
await member.setNickname(`${user.fname} ${user.lname} | TA`);
break;
case "FE":
roles.push(await interaction.guild?.roles.fetch(config.fe));
await member.setNickname(`${user.fname} ${user.lname} | FE`);
break;
case "EC":
roles.push(await interaction.guild?.roles.fetch(config.ec));
await member.setNickname(`${user.fname} ${user.lname} | "EC"`);
await member.setNickname(`${user.fname} ${user.lname} | EC`);
break;
case "WM":
roles.push(await interaction.guild?.roles.fetch(config.wm));
await member.setNickname(`${user.fname} ${user.lname} | WM`);
break;
case "MTR":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | MTR`);
break;
case "FACCBT":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | INS`);
break;
}
}
Expand Down

0 comments on commit 3579f17

Please sign in to comment.