discord-tickets / bot

The most popular open-source and self-hosted ticket management bot for Discord - a free alternative to the premium and white-label plans of other popular ticketing bots.
https://discordtickets.app
GNU General Public License v3.0
880 stars 459 forks source link

fix: fix open tickets count #500

Closed VinDotRun closed 8 months ago

VinDotRun commented 8 months ago

Versioning information

Is this related to an issue?

Fixes #499

Changes made

In the ready client listener, renamed the pre-existing closedTickets variable to closedTicketsWithResponse. Alongside this variable, added a new one with the previous name of closedTickets. This new variable filters tickets by ticket.closedAt, instead of ticket.firstResponseAt && ticket.closedAt. This allows the placeholder {openTickets} in the bot's presence to display accurate information.

Confirmations

eartharoid commented 8 months ago

@all-contributors please add @VinDotRun for bug and code

allcontributors[bot] commented 8 months ago

@eartharoid

I've put up a pull request to add @VinDotRun! :tada: