Skip to content

Commit c39b6a1

Browse files
committed
fix color not found
1 parent 558cfd8 commit c39b6a1

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Events/Interaction/interactionButton.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { Client, ChatInputCommandInteraction } = require("discord.js");
33

44
//===============< FUNCTIONS >===============\\
5-
const { errorCmdLogsInt } = require("../../Structures/Functions/errorCmdLogs.js");
5+
const { errorCmdLogsButton } = require("../../Structures/Functions/errorCmdLogs.js");
66

77
//===============< SETTINGS >===============\\
88
const Webhook = require("../../Structures/Settings/webhook.json");
@@ -11,6 +11,7 @@ const Emoji = require("../../Structures/Settings/emojis.json");
1111
const Embed = require("../../Structures/Settings/embed.json");
1212

1313
//===============< OTHERS >===============\\
14+
const color = require("colors");
1415

1516
//=====================================| Code |=====================================\\
1617
module.exports = {
@@ -46,7 +47,7 @@ module.exports = {
4647
try {
4748
command.execute(client, interaction);
4849
} catch (error) {
49-
errorCmdLogsInt(client, interaction, error)
50+
errorCmdLogsButton(client, interaction, error)
5051
console.log(`${color.bold.red(`[INTERACTION > BUTTON: ERROR]`)} ` + `${error}`.bgRed);
5152
};
5253
};

Events/Interaction/interactionContext.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const Emoji = require("../../Structures/Settings/emojis.json");
1212
const Embed = require("../../Structures/Settings/embed.json");
1313

1414
//===============< OTHERS >===============\\
15+
const color = require("colors");
1516

1617
//=====================================| Code |=====================================\\
1718
module.exports = {

Events/Interaction/interactionCreate.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const Emoji = require("../../Structures/Settings/emojis.json");
1212
const Embed = require("../../Structures/Settings/embed.json");
1313

1414
//===============< OTHERS >===============\\
15+
const color = require("colors");
1516

1617
//=====================================| Code |=====================================\\
1718
module.exports = {

Events/Interaction/interactionModal.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { Client, ChatInputCommandInteraction } = require("discord.js");
33

44
//===============< FUNCTIONS >===============\\
5-
const { errorCmdLogsInt } = require("../../Structures/Functions/errorCmdLogs.js");
5+
const { errorCmdLogsModal } = require("../../Structures/Functions/errorCmdLogs.js");
66

77
//===============< SETTINGS >===============\\
88
const Webhook = require("../../Structures/Settings/webhook.json");
@@ -11,6 +11,7 @@ const Emoji = require("../../Structures/Settings/emojis.json");
1111
const Embed = require("../../Structures/Settings/embed.json");
1212

1313
//===============< OTHERS >===============\\
14+
const color = require("colors");
1415

1516
//=====================================| Code |=====================================\\
1617
module.exports = {
@@ -37,7 +38,7 @@ module.exports = {
3738
try {
3839
command.execute(client, interaction);
3940
} catch (error) {
40-
errorCmdLogsInt(client, interaction, error)
41+
errorCmdLogsModal(client, interaction, error)
4142
console.log(`${color.bold.red(`[INTERACTION > MODAL: ERROR]`)} ` + `${error}`.bgRed);
4243
};
4344
};

Events/Interaction/interactionSelect.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { Client, ChatInputCommandInteraction } = require("discord.js");
33

44
//===============< FUNCTIONS >===============\\
5-
const { errorCmdLogsInt } = require("../../Structures/Functions/errorCmdLogs.js");
5+
const { errorCmdLogsSelect } = require("../../Structures/Functions/errorCmdLogs.js");
66

77
//===============< SETTINGS >===============\\
88
const Webhook = require("../../Structures/Settings/webhook.json");
@@ -11,6 +11,7 @@ const Emoji = require("../../Structures/Settings/emojis.json");
1111
const Embed = require("../../Structures/Settings/embed.json");
1212

1313
//===============< OTHERS >===============\\
14+
const color = require("colors");
1415

1516
//=====================================| Code |=====================================\\
1617
module.exports = {
@@ -46,7 +47,7 @@ module.exports = {
4647
try {
4748
command.execute(client, interaction);
4849
} catch (error) {
49-
errorCmdLogsInt(client, interaction, error)
50+
errorCmdLogsSelect(client, interaction, error)
5051
console.log(`${color.bold.red(`[INTERACTION > SELECTION: ERROR]`)} ` + `${error}`.bgRed);
5152
};
5253
};

0 commit comments

Comments
 (0)