mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23: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 {
|
try {
|
||||||
const creator = await channel?.guild.members.fetch(ticket.createdById);
|
const creator = channel?.guild.members.cache.has(ticket.createdById);
|
||||||
if (creator) {
|
if (creator) {
|
||||||
const embed = new ExtendedEmbedBuilder({
|
const embed = new ExtendedEmbedBuilder({
|
||||||
iconURL: channel.guild.iconURL(),
|
iconURL: channel.guild.iconURL(),
|
||||||
|
Loading…
Reference in New Issue
Block a user