mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 08:45:03 +00:00
Add commands to list and reset counters
This commit is contained in:
parent
b0fd29f098
commit
2c732d970f
8 changed files with 258 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue