Skip to content

Commit af60340

Browse files
committed
increment tag uses in pban command
1 parent d419f33 commit af60340

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Bot/Systems/Commands/Text/Modules/Moderation/PirateBanCommand.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ public async Task<ActionResult> PirateBanAsync(
3030
if (!(sentReasonDm = await member.TrySendMessageAsync(embed: tag.Value.AsContentEmbed(Context).Build())))
3131
Warn(LogSource.Module, $"encountered a 403 when trying to message {member}!");
3232
}
33+
34+
if (sentReasonDm)
35+
{
36+
tag.Value.Uses++;
37+
Db.Save(Context.GuildData);
38+
}
3339
}
3440
}
3541

0 commit comments

Comments
 (0)