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 3579f17 commit d3ad564
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/commands/giveroles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,37 +153,37 @@ export class VerifyCommand extends Command {
}
//Really pointless since the role bot is not able to assign roles higher than itself
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`);
case "MTR":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | MTR`);
break;
case "TA":
roles.push(await interaction.guild?.roles.fetch(config.ta));
await member.setNickname(`${user.fname} ${user.lname} | TA`);
case "FACCBT":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | INS`);
break;
case "FE":
roles.push(await interaction.guild?.roles.fetch(config.fe));
await member.setNickname(`${user.fname} ${user.lname} | FE`);
case "WM":
roles.push(await interaction.guild?.roles.fetch(config.wm));
await member.setNickname(`${user.fname} ${user.lname} | WM`);
break;
case "EC":
roles.push(await interaction.guild?.roles.fetch(config.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`);
case "FE":
roles.push(await interaction.guild?.roles.fetch(config.fe));
await member.setNickname(`${user.fname} ${user.lname} | FE`);
break;
case "MTR":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | MTR`);
case "TA":
roles.push(await interaction.guild?.roles.fetch(config.ta));
await member.setNickname(`${user.fname} ${user.lname} | TA`);
break;
case "FACCBT":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
await member.setNickname(`${user.fname} ${user.lname} | INS`);
case "DATM":
roles.push(await interaction.guild?.roles.fetch(config.datm));
await member.setNickname(`${user.fname} ${user.lname} | DATM`);
break;
case "ATM":
roles.push(await interaction.guild?.roles.fetch(config.atm));
await member.setNickname(`${user.fname} ${user.lname} | ATM`);
break;
}
}
Expand All @@ -192,7 +192,7 @@ export class VerifyCommand extends Command {
console.log(roles);

await member.roles.add(roles); //Add all roles in the roles[] array
await interaction.editReply("Welcome to our Discord! We are glad you are here! **Your roles have been assigned!**");
await interaction.editReply("Welcome to our Discord, we are glad you are here! **Your roles have been assigned!**");
return;
}
}
Expand Down

0 comments on commit d3ad564

Please sign in to comment.