From f572523e4b945be2b147c134fdfe0b88531255a5 Mon Sep 17 00:00:00 2001 From: "Isaac (eartharoid)" Date: Fri, 20 Nov 2020 23:50:08 +0000 Subject: [PATCH] Replace emoji names with unicode characters ...to fix emoji in emebds for web archives --- .github/SECURITY.md | 4 ++-- src/commands/add.js | 10 +++++----- src/commands/close.js | 16 ++++++++-------- src/commands/delete.js | 14 +++++++------- src/commands/help.js | 2 +- src/commands/new.js | 8 ++++---- src/commands/remove.js | 10 +++++----- src/commands/rename.js | 6 +++--- src/commands/tickets.js | 4 ++-- src/commands/topic.js | 6 +++--- src/commands/transcript.js | 4 ++-- src/commands/transfer.js | 8 ++++---- src/events/message.js | 6 +++--- src/events/messageReactionAdd.js | 6 +++--- src/modules/archive.js | 2 +- 15 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 66a16f7..ee39dd1 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -6,8 +6,8 @@ Release versions that will receive security updates. | Version | Supported | | ------- | ------------------ | -| 2.x | :white_check_mark: | -| < 2.0 | :x: | +| 2.x | ✅ | +| < 2.0 | ❌ | ## Reporting a Vulnerability diff --git a/src/commands/add.js b/src/commands/add.js index 45df22a..22d7d1c 100644 --- a/src/commands/add.js +++ b/src/commands/add.js @@ -23,7 +23,7 @@ module.exports = { const notTicket = new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to add a user to, or mention the channel.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -42,7 +42,7 @@ module.exports = { ticket = await Ticket.findOne({ where: { channel: channel.id } }); if (!ticket) { notTicket - .setTitle(':x: **Channel is not a ticket**') + .setTitle('❌ **Channel is not a ticket**') .setDescription(`${channel} is not a ticket channel.`); return message.channel.send(notTicket); } @@ -53,7 +53,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription(`You don't have permission to alter ${channel} as it does not belong to you and you are not staff.`) .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -68,7 +68,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Unknown member**') + .setTitle('❌ **Unknown member**') .setDescription('Please mention a valid member.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -99,7 +99,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(member.user.username, member.user.displayAvatarURL()) - .setTitle(':white_check_mark: **Member added**') + .setTitle('✅ **Member added**') .setDescription(`${member} has been added to <#${ticket.channel}>`) .setFooter(guild.name, guild.iconURL()) ); diff --git a/src/commands/close.js b/src/commands/close.js index e7e65ff..bf93d49 100644 --- a/src/commands/close.js +++ b/src/commands/close.js @@ -26,7 +26,7 @@ module.exports = { const notTicket = new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to close, or mention the channel.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -53,7 +53,7 @@ module.exports = { }); if (!ticket) { notTicket - .setTitle(':x: **Channel is not a ticket**') + .setTitle('❌ **Channel is not a ticket**') .setDescription(`${channel} is not a ticket channel.`); return message.channel.send(notTicket); } @@ -65,7 +65,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription(`You don't have permission to close ${channel} as it does not belong to you and you are not staff.`) .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -82,8 +82,8 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':grey_question: Are you sure?') - .setDescription(`${pre}\n**React with :white_check_mark: to confirm.**`) + .setTitle('❔ Are you sure?') + .setDescription(`${pre}\n**React with ✅ to confirm.**`) .setFooter(guild.name + ' | Expires in 15 seconds', guild.iconURL()) ); @@ -111,7 +111,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(`:white_check_mark: **Ticket ${ticket.id} closed**`) + .setTitle(`✅ **Ticket ${ticket.id} closed**`) .setDescription('The channel will be automatically deleted in a few seconds, once the contents have been archived.') .setFooter(guild.name, guild.iconURL()) ); @@ -157,7 +157,7 @@ module.exports = { try { dm.send(res).then(); } catch (e) { - message.channel.send(':x: Couldn\'t send DM'); + message.channel.send('❌ Couldn\'t send DM'); } } } @@ -205,7 +205,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Expired**') + .setTitle('❌ **Expired**') .setDescription('You took too long to react; confirmation failed.') .setFooter(guild.name, guild.iconURL())); diff --git a/src/commands/delete.js b/src/commands/delete.js index 792c0e0..42d236a 100644 --- a/src/commands/delete.js +++ b/src/commands/delete.js @@ -30,7 +30,7 @@ module.exports = { const notTicket = new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to delete, or mention the channel.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -58,7 +58,7 @@ module.exports = { }); if (!ticket) { notTicket - .setTitle(':x: **Channel is not a ticket**') + .setTitle('❌ **Channel is not a ticket**') .setDescription(`${channel} is not a ticket channel.`); return message.channel.send(notTicket); } @@ -69,7 +69,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription(`You don't have permission to delete ${channel} as it does not belong to you and you are not staff.`) .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -82,11 +82,11 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':grey_question: Are you sure?') + .setTitle('❔ Are you sure?') .setDescription( `:warning: This action is **irreversible**, the ticket will be completely removed from the database. You will **not** be able to view a transcript/archive of the channel later. - Use the \`close\` command instead if you don't want this behaviour.\n**React with :white_check_mark: to confirm.**`) + Use the \`close\` command instead if you don't want this behaviour.\n**React with ✅ to confirm.**`) .setFooter(guild.name + ' | Expires in 15 seconds', guild.iconURL()) ); @@ -113,7 +113,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(`:white_check_mark: **Ticket ${ticket.id} deleted**`) + .setTitle(`✅ **Ticket ${ticket.id} deleted**`) .setDescription('The channel will be automatically deleted in a few seconds.') .setFooter(guild.name, guild.iconURL()) ); @@ -162,7 +162,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Expired**') + .setTitle('❌ **Expired**') .setDescription('You took too long to react; confirmation failed.') .setFooter(guild.name, guild.iconURL())); diff --git a/src/commands/help.js b/src/commands/help.js index b2c3997..8366065 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -58,7 +58,7 @@ module.exports = { return message.channel.send( new MessageEmbed() .setColor(config.err_colour) - .setDescription(`:x: **Invalid command name** (\`${config.prefix}help\`)`) + .setDescription(`❌ **Invalid command name** (\`${config.prefix}help\`)`) ); diff --git a/src/commands/new.js b/src/commands/new.js index b720e14..b4a545f 100644 --- a/src/commands/new.js +++ b/src/commands/new.js @@ -27,7 +27,7 @@ module.exports = { return message.channel.send( new MessageEmbed() .setColor(config.err_colour) - .setTitle(':x: **Error**') + .setTitle('❌ **Error**') .setDescription(`${config.name} has not been set up correctly. Could not find a 'support team' role with the id \`${config.staff_role}\``) .setFooter(guild.name, guild.iconURL()) ); @@ -53,7 +53,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(`:x: **You already have ${tickets.count} or more open tickets**`) + .setTitle(`❌ **You already have ${tickets.count} or more open tickets**`) .setDescription(`Use \`${config.prefix}close\` to close unneeded tickets.\n\n${ticketList.join(',\n')}`) .setFooter(guild.name + ' | This message will be deleted in 15 seconds', guild.iconURL()) ); @@ -71,7 +71,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Description too long**') + .setTitle('❌ **Description too long**') .setDescription('Please limit your ticket topic to less than 256 characters. A short sentence will do.') .setFooter(guild.name, guild.iconURL()) ); @@ -123,7 +123,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':white_check_mark: **Ticket created**') + .setTitle('✅ **Ticket created**') .setDescription(`Your ticket has been created: ${c}`) .setFooter(client.user.username + ' | This message will be deleted in 15 seconds', client.user.displayAvatarURL()) ); diff --git a/src/commands/remove.js b/src/commands/remove.js index 2ad11c3..f59e033 100644 --- a/src/commands/remove.js +++ b/src/commands/remove.js @@ -23,7 +23,7 @@ module.exports = { const notTicket = new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to remove a user from, or mention the channel.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -45,7 +45,7 @@ module.exports = { ticket = await Ticket.findOne({ where: { channel: channel.id } }); if (!ticket) { notTicket - .setTitle(':x: **Channel is not a ticket**') + .setTitle('❌ **Channel is not a ticket**') .setDescription(`${channel} is not a ticket channel.`); return message.channel.send(notTicket); } @@ -56,7 +56,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription(`You don't have permission to alter ${channel} as it does not belong to you and you are not staff.`) .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -71,7 +71,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Unknown member**') + .setTitle('❌ **Unknown member**') .setDescription('Please mention a valid member.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -101,7 +101,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(member.user.username, member.user.displayAvatarURL()) - .setTitle(':white_check_mark: **Member removed**') + .setTitle('✅ **Member removed**') .setDescription(`${member} has been removed from <#${ticket.channel}>`) .setFooter(guild.name, guild.iconURL()) ); diff --git a/src/commands/rename.js b/src/commands/rename.js index 062cdef..816305e 100644 --- a/src/commands/rename.js +++ b/src/commands/rename.js @@ -29,7 +29,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to rename.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -42,7 +42,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription('You don\'t have permission to rename this channel as you are not staff.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -55,7 +55,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':white_check_mark: **Ticket updated**') + .setTitle('✅ **Ticket updated**') .setDescription('The name has been changed.') .setFooter(client.user.username, client.user.displayAvatarURL()) ); diff --git a/src/commands/tickets.js b/src/commands/tickets.js index 32beb47..778b52b 100644 --- a/src/commands/tickets.js +++ b/src/commands/tickets.js @@ -24,7 +24,7 @@ module.exports = { return message.channel.send( new MessageEmbed() .setColor(config.err_colour) - .setTitle(':x: **Error**') + .setTitle('❌ **Error**') .setDescription(`${config.name} has not been set up correctly. Could not find a 'support team' role with the id \`${config.staff_role}\``) .setFooter(guild.name, guild.iconURL()) ); @@ -39,7 +39,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription('You don\'t have permission to list others\' tickets as you are not staff.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) diff --git a/src/commands/topic.js b/src/commands/topic.js index 3c26382..969eafc 100644 --- a/src/commands/topic.js +++ b/src/commands/topic.js @@ -29,7 +29,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to close, or mention the channel.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -43,7 +43,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Description too long**') + .setTitle('❌ **Description too long**') .setDescription('Please limit your ticket topic to less than 256 characters. A short sentence will do.') .setFooter(guild.name, guild.iconURL()) ); @@ -63,7 +63,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':white_check_mark: **Ticket updated**') + .setTitle('✅ **Ticket updated**') .setDescription('The topic has been changed.') .setFooter(client.user.username, client.user.displayAvatarURL()) ); diff --git a/src/commands/transcript.js b/src/commands/transcript.js index deb2a62..5703042 100644 --- a/src/commands/transcript.js +++ b/src/commands/transcript.js @@ -37,7 +37,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Unknown ticket**') + .setTitle('❌ **Unknown ticket**') .setDescription('Couldn\'t find a closed ticket with that ID') .setFooter(guild.name, guild.iconURL()) ); @@ -48,7 +48,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription(`You don't have permission to view ticket ${id} as it does not belong to you and you are not staff.`) .setFooter(guild.name, guild.iconURL()) ); diff --git a/src/commands/transfer.js b/src/commands/transfer.js index 28cd670..9c9ef46 100644 --- a/src/commands/transfer.js +++ b/src/commands/transfer.js @@ -29,7 +29,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **This isn\'t a ticket channel**') + .setTitle('❌ **This isn\'t a ticket channel**') .setDescription('Use this command in the ticket channel you want to change owner.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -42,7 +42,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **No permission**') + .setTitle('❌ **No permission**') .setDescription('You don\'t have permission to change ownership of this channel as you are not staff.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -56,7 +56,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':x: **Unknown member**') + .setTitle('❌ **Unknown member**') .setDescription('Please mention a valid member.') .addField('Usage', `\`${config.prefix}${this.name} ${this.usage}\`\n`) .addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`) @@ -79,7 +79,7 @@ module.exports = { new MessageEmbed() .setColor(config.colour) .setAuthor(message.author.username, message.author.displayAvatarURL()) - .setTitle(':white_check_mark: **Ticket transferred**') + .setTitle('✅ **Ticket transferred**') .setDescription(`Ownership of this ticket has been transferred to ${member}.`) .setFooter(client.user.username, client.user.displayAvatarURL()) ); diff --git a/src/events/message.js b/src/events/message.js index 344032f..f5aea2a 100644 --- a/src/events/message.js +++ b/src/events/message.js @@ -58,7 +58,7 @@ Type \`${config.prefix}new\` on the server to create a new ticket.`); return message.channel.send( new MessageEmbed() .setColor(config.err_colour) - .setTitle(':x: No permission') + .setTitle('❌ No permission') .setDescription(`**You do not have permission to use the \`${command.name}\` command** (requires \`${command.permission}\`).`) .setFooter(guild.name, guild.iconURL()) ); @@ -89,7 +89,7 @@ Type \`${config.prefix}new\` on the server to create a new ticket.`); return message.channel.send( new MessageEmbed() .setColor(config.err_colour) - .setDescription(`:x: Please wait ${timeLeft.toFixed(1)} second(s) before reusing the \`${command.name}\` command.`) + .setDescription(`❌ Please wait ${timeLeft.toFixed(1)} second(s) before reusing the \`${command.name}\` command.`) .setFooter(guild.name, guild.iconURL()) ); } @@ -104,7 +104,7 @@ Type \`${config.prefix}new\` on the server to create a new ticket.`); } catch (error) { log.warn(`An error occurred whilst executing the '${command.name}' command`); log.error(error); - message.channel.send(`:x: An error occurred whilst executing the \`${command.name}\` command.`); + message.channel.send(`❌ An error occurred whilst executing the \`${command.name}\` command.`); } } }; diff --git a/src/events/messageReactionAdd.js b/src/events/messageReactionAdd.js index b38aec0..80da3e7 100644 --- a/src/events/messageReactionAdd.js +++ b/src/events/messageReactionAdd.js @@ -40,7 +40,7 @@ module.exports = { return channel.send( new MessageEmbed() .setColor(config.err_colour) - .setTitle(':x: **Error**') + .setTitle('❌ **Error**') .setDescription(`${config.name} has not been set up correctly. Could not find a 'support team' role with the id \`${config.staff_role}\``) .setFooter(channel.guild.name, channel.guild.iconURL()) ); @@ -72,7 +72,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(u.username, u.displayAvatarURL()) - .setTitle(`:x: **You already have ${tickets.count} or more open tickets**`) + .setTitle(`❌ **You already have ${tickets.count} or more open tickets**`) .setDescription(`Use \`${config.prefix}close\` in a server channel to close unneeded tickets.\n\n${ticketList.join(',\n')}`) .setFooter(channel.guild.name, channel.guild.iconURL()) ); @@ -81,7 +81,7 @@ module.exports = { new MessageEmbed() .setColor(config.err_colour) .setAuthor(u.username, u.displayAvatarURL()) - .setTitle(`:x: **You already have ${tickets.count} or more open tickets**`) + .setTitle(`❌ **You already have ${tickets.count} or more open tickets**`) .setDescription(`Use \`${config.prefix}close\` to close unneeded tickets.\n\n${ticketList.join(',\n')}`) .setFooter(channel.guild.name + ' | This message will be deleted in 15 seconds', channel.guild.iconURL()) ); diff --git a/src/modules/archive.js b/src/modules/archive.js index 6c26daa..6b11fd7 100644 --- a/src/modules/archive.js +++ b/src/modules/archive.js @@ -40,7 +40,7 @@ module.exports.add = (message) => { fs.appendFileSync(join(__dirname, raw), JSON.stringify({ id: message.id, author: message.author.id, - content: message.content, // do not use cleanContent! + content: message.content, // do not use cleanContent, we want to include the mentions! time: message.createdTimestamp, embeds: embeds, attachments: [...message.attachments.values()]