mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
fix: closing ticket with missing creator (closes #401)
This commit is contained in:
parent
a44539914e
commit
d1267360c8
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user