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

View File

@ -17,7 +17,7 @@ module.exports = {
.setTitle("Pong!") .setTitle("Pong!")
.setColor(config.colour) .setColor(config.colour)
.setTimestamp() .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); message.channel.send(embed);
// command ends here // command ends here
}, },