3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Add commands to list and reset counters

This commit is contained in:
Dragory 2021-05-03 19:33:30 +03:00
parent 25a3350196
commit a568e86d78
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
8 changed files with 258 additions and 2 deletions

View file

@ -527,4 +527,10 @@ export class GuildCounters extends BaseGuildRepository {
return value?.value;
}
async resetAllCounterValues(counterId: number): Promise<void> {
await this.counterValues.delete({
counter_id: counterId,
});
}
}