all repos — stealth-developers @ 32e571c080df75ef430ed79c120546abdf71328e

bot: fix thank you button
vi did:web:vt3e.cat
Wed, 08 Jul 2026 03:09:40 +0100
commit

32e571c080df75ef430ed79c120546abdf71328e

parent

6c1094cd3d39e42163fcd5e1ca3a8522231057ed

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M apps/bot/src/feats/tickets/buttons.tsapps/bot/src/feats/tickets/buttons.ts

@@ -235,9 +235,10 @@ options: {

ticketId: option.string({ required: true }), }, async run(interaction, _, ctx) { - const { guild, ticket } = ctx; - if (!guild) return errorMessage(interaction, "Failed to find guild"); + const { ticket } = ctx; if (!ticket) return errorMessage(interaction, "Failed to find ticket"); + + const { guild } = ticket; const thankedAt = ticket.thankedAt; if (thankedAt) return errorMessage(interaction, "You already thanked for this ticket");