This commit is contained in:
David Ralph 2020-08-03 16:47:44 +01:00
parent 8a2c9fa90c
commit 7fb279250b
2 changed files with 6 additions and 6 deletions

View File

@ -49,15 +49,15 @@ module.exports = {
c.overwritePermissions(message.guild.defaultRole, {
VIEW_CHANNEL: false,
SEND_MESSAGES: false
})
});
c.overwritePermissions(message.member, {
VIEW_CHANNEL: true,
SEND_MESSAGES: true
})
});
c.overwritePermissions(supportRole, {
VIEW_CHANNEL: true,
SEND_MESSAGES: true
})
});
c.setTopic(`${message.author} | ${topic}`);
if (config.tagHereOnly) {
await c.send(`@here, a user has created a new ticket.\n`);
@ -68,9 +68,9 @@ module.exports = {
if (config.ticketImage) {
await c.send(`__**Here's your ticket channel, ${message.author}**__`, {
files: [`./image.png`]
})
});
} else {
await c.send(`__**Here's your ticket channel, ${message.author}**__`)
await c.send(`__**Here's your ticket channel, ${message.author}**__`);
}
const created = new Discord.RichEmbed()

View File

@ -17,7 +17,7 @@ module.exports = {
.setTitle("Pong!")
.setColor(config.colour)
.setTimestamp()
.addField("API Latency", `${Math.round(message.client.ping)}ms`, true)
.addField("API Latency", `${Math.round(message.client.ping)}ms`, true);
message.channel.send(embed);
// command ends here
},