Skip to content

Commit

Permalink
fix: closing ticket with missing creator (closes #401)
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed May 24, 2023
1 parent a445399 commit d126736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/tickets/manager.js
Expand Up @@ -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(),
Expand Down

0 comments on commit d126736

Please sign in to comment.