Skip to content

Commit 4bef547

Browse files
committed
Improve ticket reopen embed
1 parent f701b04 commit 4bef547

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

commands/Tickets/reopen.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,17 @@ module.exports = {
9494

9595
const embed = new EmbedBuilder()
9696
.setColor(config.commands.reopen.embed.color)
97+
.setTitle(config.commands.reopen.embed.title)
9798
.setDescription(
9899
`${config.commands.reopen.embed.description}`
99100
.replace(/\{user\}/g, `${interaction.user}`)
100101
.replace(/\{user\.tag\}/g, sanitizeInput(interaction.user.tag)),
101-
);
102+
)
103+
.setFooter({
104+
text: `${interaction.user.tag}`,
105+
iconURL: `${interaction.user.displayAvatarURL({ dynamic: true })}`,
106+
})
107+
.setTimestamp();
102108

103109
Object.keys(ticketCategories).forEach(async (id) => {
104110
if (ticketButton === id) {

config.yml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ commands:
205205
permission: "KickMembers"
206206
embed:
207207
color: "#2FF200"
208+
title: "Ticket Re-Opened"
208209
description: "This ticket has been re-opened by **{user} ({user.tag})**" # Use {user} for the username of the staff and {user.tag} to have the staff tagged
209210
LogEmbed:
210211
color: "#2FF200"

events/interactionCreate.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,15 @@ module.exports = {
592592

593593
const embed = new EmbedBuilder()
594594
.setColor(config.default_embed_color)
595+
.setTitle("Ticket Re-Opened")
595596
.setDescription(
596597
`This ticket has been re-opened by **<@!${interaction.user.id}> (${sanitizeInput(interaction.user.tag)})**`,
597-
);
598+
)
599+
.setFooter({
600+
text: `${interaction.user.tag}`,
601+
iconURL: `${interaction.user.displayAvatarURL({ dynamic: true })}`,
602+
})
603+
.setTimestamp();
598604

599605
Object.keys(ticketCategories).forEach(async (id) => {
600606
if (ticketButton === id) {

0 commit comments

Comments
 (0)