Replace emoji names with unicode characters

...to fix emoji in emebds for web archives
This commit is contained in:
Isaac (eartharoid) 2020-11-20 23:50:08 +00:00
parent aab1b4a81a
commit f572523e4b
15 changed files with 53 additions and 53 deletions

4
.github/SECURITY.md vendored
View File

@ -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

View File

@ -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())
);

View File

@ -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()));

View File

@ -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()));

View File

@ -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\`)`)
);

View File

@ -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())
);

View File

@ -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())
);

View File

@ -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())
);

View File

@ -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`)

View File

@ -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())
);

View File

@ -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())
);

View File

@ -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())
);

View File

@ -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.`);
}
}
};

View File

@ -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())
);

View File

@ -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()]