Skip to content

Commit c3d89ff

Browse files
author
ZDiscord Maintainer
committed
fix: currentTicket scope — use ticketCounter.get() in sendTicketWelcome
1 parent 8075bc9 commit c3d89ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/demonz/zdiscord/modules/TicketModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private void sendTicketWelcome(TextChannel channel, String username,
342342
.addField("Category", categoryLabel, true)
343343
.addField("Opened by", "`" + username + "`", true)
344344
.setColor(ColorUtil.parseHex(color))
345-
.setFooter("Ticket #" + currentTicket + " \u2022 Use the buttons below to manage")
345+
.setFooter("Ticket #" + ticketCounter.get() + " \u2022 Use the buttons below to manage")
346346
.setTimestamp(Instant.now());
347347

348348
channel.sendMessageEmbeds(embed.build())

0 commit comments

Comments
 (0)