mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
Update new.js
This commit is contained in:
parent
60044a1e70
commit
fc88b14e50
@ -26,7 +26,7 @@ module.exports = {
|
||||
let id = message.author.id.toString().substr(0, 4) + message.author.discriminator;
|
||||
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) {
|
||||
const err1 = new Discord.RichEmbed()
|
||||
.setColor("#E74C3C")
|
||||
@ -121,4 +121,4 @@ module.exports = {
|
||||
|
||||
// command ends here
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user