(guildId)
| 594 | } |
| 595 | |
| 596 | export async function getTicketCounter(guildId) { |
| 597 | if (!db.initialized) { |
| 598 | await db.initialize(); |
| 599 | } |
| 600 | |
| 601 | const key = getTicketCounterKey(guildId); |
| 602 | const counter = await db.get(key); |
| 603 | return counter || 0; |
| 604 | } |
| 605 | |
| 606 | export async function incrementTicketCounter(guildId) { |
| 607 | if (!db.initialized) { |
no test coverage detected