Fixed bug
This commit is contained in:
1 parent
8a2059f087
commit
4cb45beded
1 file changed
+3
-4
+3
-4
@@ -64,10 +64,9 @@ module.exports = new Command({
|
|||||||
.setColor(supportbot.WarningColour);
|
.setColor(supportbot.WarningColour);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
interaction.guild.channels.cache.find(
|
await interaction.guild.channels.cache.find((ticketChannel) => {
|
||||||
(ticketChannel) =>
|
ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`;
|
||||||
ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`
|
})
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
return interaction.reply({ embeds: [TicketExists] });
|
return interaction.reply({ embeds: [TicketExists] });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user