Odd ones out:
Il y a du soleil
J'aime jouer aux cartes
client.on('messageReactionAdd', async (reaction, user, channel, message, TextChannel) => { | |
if (user.bot) return; | |
if (reaction.emoji.name === 'π©') { | |
const ticketConfig = await TicketConfig.findOne({ where: { messageId: reaction.message.id } }); | |
if (ticketConfig) { | |
const findTicket = await Ticket.findOne({ where: { authorId: user.id, resolved: false } }); | |
if (findTicket) user.send('Please find your open ticket in the discord for help.') && reaction.users.remove(user.id); | |
else { | |
console.log('Creating ticket'); | |
try { |