mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 14:23:08 +02:00
oops
This commit is contained in:
parent
8a2c9fa90c
commit
7fb279250b
@ -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()
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user