Skip to content

Commit

Permalink
fix dms
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Jan 26, 2024
1 parent b91d1f8 commit 43b4f6b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions commands/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ module.exports = {
.setDescription(`${add.username} has been added to the staff database!`)
.setColor("#0096ff");

await DmUser(interaction.client, add, "You have been added to the staff team! You can now use all the staff commands");
const StaffNotif = new EmbedBuilder()
.setTitle("Staff Update")
.setDescription(`You have been added to the staff team! You can now use all the staff commands`)

await DmUser(interaction.client, add, StaffNotif);
return await interaction.editReply({ embeds: [embed] });
}
if (remove) {
Expand All @@ -75,7 +79,11 @@ module.exports = {
const embed = new EmbedBuilder()
.setDescription(`${remove.username} has been removed from the staff database!`)
.setColor("#0096ff");
await DmUser(interaction.client, remove, "You have been removed from the staff team! You can no longer use the staff commands");
const StaffNotif = new EmbedBuilder()
.setTitle("Staff Update")
.setDescription(`You have been removed from the staff team! You can no longer use the staff commands.`)

await DmUser(interaction.client, remove, StaffNotif);
return await interaction.editReply({ embeds: [embed] });
}
if (!add && !remove) {
Expand Down

0 comments on commit 43b4f6b

Please sign in to comment.