fix: closing ticket with missing creator (closes #401)

This commit is contained in:
Isaac 2023-05-24 22:20:29 +01:00
parent a44539914e
commit d1267360c8
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -1217,7 +1217,7 @@ module.exports = class TicketManager {
}
try {
const creator = await channel?.guild.members.fetch(ticket.createdById);
const creator = channel?.guild.members.cache.has(ticket.createdById);
if (creator) {
const embed = new ExtendedEmbedBuilder({
iconURL: channel.guild.iconURL(),