v8.0-Dev-1.1

This commit is contained in:
ItzEmerald committed 2022-07-23 07:50:12 +01:00
1 parent 209ec0b435
commit 4e081358ff
17 files changed
+256 -99

No files matched your search

+2 -2
View File
@@ -49,7 +49,7 @@ module.exports = new Event("interactionCreate", async (client, interaction) => {
interaction.customId.includes("department-")
) {
try {
const cmd = client.commands.get(cmdconfig.OpenTicket);
const cmd = client.commands.get(cmdconfig.OpenTicket.Command);
if (!cmd) return;
cmd.run(interaction);
} catch (error) {
@@ -59,7 +59,7 @@ module.exports = new Event("interactionCreate", async (client, interaction) => {
if (interaction.customId === "ticketclose") {
try {
const cmd = client.commands.get(cmdconfig.CloseTicket);
const cmd = client.commands.get(cmdconfig.CloseTicket.Command);
if (!cmd) return;
cmd.run(interaction);
} catch (error) {
+6 -5
View File
@@ -16,9 +16,9 @@ const Event = require("../Structures/Event.js");
module.exports = new Event("ready", async (client, interaction) => {
const { getRole, getChannel, getCategory } = client;
client.user.setActivity(supportbot.Activity, {
type: supportbot.Type,
url: supportbot.StreamingURL,
client.user.setActivity(supportbot.Activity.Status, {
type: supportbot.Activity.Type,
url: supportbot.Activity.StreamingURL,
});
console.log(`\u001b[32m`, `――――――――――――――――――――――――――――――――――――――――――――`);
@@ -90,8 +90,8 @@ module.exports = new Event("ready", async (client, interaction) => {
const roles = [
supportbot.Admin,
supportbot.Staff,
supportbot?.TicketBlackListRole,
supportbot?.TicketMutedRole
supportbot.TicketBlackListRole,
supportbot.TicketMutedRole
];
supportbot.Departments.forEach((department) => roles.push(department.role));
@@ -111,6 +111,7 @@ module.exports = new Event("ready", async (client, interaction) => {
const missingC = [];
const missingR = [];
const missingCat = [];
for (let c of channels) {
if ((c === supportbot.SuggestionChannel && supportbot.DisableSuggestionsChannel) || c === supportbot.TicketLog && supportbot.DisableTicketLogChannel) {
continue;