Skip to content
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

Merged
merged 13 commits into from
Apr 30, 2023
Merged

2.3.0 #143

merged 13 commits into from
Apr 30, 2023

Conversation

Sayrix
Copy link
Owner

@Sayrix Sayrix commented Apr 30, 2023

No description provided.

@Sayrix Sayrix added the enhancement New feature or request label Apr 30, 2023
}
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()`

Don't use process.exit(); throw an error instead.
@@ -1,3 +1,5 @@
const Discord = require("discord.js");

Check warning

Code scanning / ESLint

disallow unused variables

'Discord' is assigned a value but never used.
*/
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

Promise executor functions should not be async.
@@ -0,0 +1,63 @@
const { SlashCommandBuilder } = require("discord.js");
const Discord = require("discord.js");

Check warning

Code scanning / ESLint

disallow unused variables

'Discord' is assigned a value but never used.
@@ -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

'Discord' is assigned a value but never used.
/**
* @param {Discord.Client} client
*/
async deployCommands(client) {

Check warning

Code scanning / ESLint

disallow unused variables

'client' is defined but never used.
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()`

Don't use process.exit(); throw an error instead.
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()`

Don't use process.exit(); throw an error instead.
@Sayrix Sayrix merged commit ddc549b into main Apr 30, 2023
@Sayrix Sayrix deleted the 2.3.0 branch April 30, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant