content=string.format("❌ failed to retrieve member: %s", err)
})
return
end
ifnotmodmail:CheckOpenTicketPermission(moderator, targetMember) then
interaction:editResponse({
content=string.format("❌ You do not have permission to open a modmail ticket.")
})
return
end
localreason=string.format("%s has opened a ticket following your message (<https://discord.com/channels/%s/%s/%s>)", moderator.mentionString, guild.id, alertMessage.ChannelId, alertMessage.MessageId)