Merge pull request #3 from iDrunK65/master

Update new.js
This commit is contained in:
Isaac 2020-02-09 12:20:22 +00:00 committed by GitHub
commit 962ef5f58e

View File

@ -26,7 +26,7 @@ module.exports = {
let id = message.author.id.toString().substr(0, 4) + message.author.discriminator; let id = message.author.id.toString().substr(0, 4) + message.author.discriminator;
let chan = `ticket-${id}`; let chan = `ticket-${id}`;
if (message.guild.channels.some(channel => chan.includes(channel.name))) { if (message.guild.channels.find(channel => channel.name === chan)) {
if (config.useEmbeds) { if (config.useEmbeds) {
const err1 = new Discord.RichEmbed() const err1 = new Discord.RichEmbed()
.setColor("#E74C3C") .setColor("#E74C3C")