Skip to content

Commit

Permalink
add a reason when deleting empty roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Nov 23, 2023
1 parent d3be60d commit 0c3b2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/discord/modules/commands/Role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const removeRole = async (ctx: Discord.ChatInputCommandInteraction): Promise<any
if (role && member) {
await member.roles.remove(role, "Removed role via command");
if (role.members.size === 0) {
await role.delete();
await role.delete("Role has no members anymore");
}
}
role
Expand Down

0 comments on commit 0c3b2c7

Please sign in to comment.