-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3.0 #143
Conversation
} | ||
if (!openTicketChannel.isTextBased()) { | ||
console.error("The channel to open tickets is not a channel!"); | ||
process.exit(0); |
Check failure
Code scanning / ESLint
disallow the use of `process.exit()`
@@ -1,3 +1,5 @@ | |||
const Discord = require("discord.js"); |
Check warning
Code scanning / ESLint
disallow unused variables
*/ | ||
async createTicket(interaction, client, ticketType, reasons) { | ||
// eslint-disable-next-line no-async-promise-executor | ||
return new Promise(async function (resolve, reject) { |
Check failure
Code scanning / ESLint
disallow using an async function as a Promise executor
@@ -0,0 +1,63 @@ | |||
const { SlashCommandBuilder } = require("discord.js"); | |||
const Discord = require("discord.js"); |
Check warning
Code scanning / ESLint
disallow unused variables
@@ -4,24 +4,32 @@ | |||
// eslint-disable-next-line node/no-extraneous-require | |||
const { REST } = require("@discordjs/rest"); | |||
const { Routes } = require("discord.js"); | |||
const Discord = require("discord.js"); |
Check warning
Code scanning / ESLint
disallow unused variables
deploy-commands.js
Outdated
/** | ||
* @param {Discord.Client} client | ||
*/ | ||
async deployCommands(client) { |
Check warning
Code scanning / ESLint
disallow unused variables
const embedMessageId = await client.db.get("temp.openTicketMessageId"); | ||
await client.channels.fetch(client.config.openTicketChannelId).catch(() => { | ||
console.error("The channel to open tickets is not found!"); | ||
process.exit(0); |
Check failure
Code scanning / ESLint
disallow the use of `process.exit()`
const openTicketChannel = await client.channels.cache.get(client.config.openTicketChannelId); | ||
if (!openTicketChannel) { | ||
console.error("The channel to open tickets is not found!"); | ||
process.exit(0); |
Check failure
Code scanning / ESLint
disallow the use of `process.exit()`
No description provided.