Skip to content

Commit 38dad14

Browse files
committed
Remove unused / unneeded commands and fix all MessageFlags.
1 parent 9f43dec commit 38dad14

21 files changed

+20
-143
lines changed

interactions/buttons/category/logs/logs_pc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder} = require("discord.js");
1+
const {EmbedBuilder, MessageFlags} = require("discord.js");
22

33
module.exports = {
44
id: "logs_pc",
@@ -15,6 +15,5 @@ module.exports = {
1515
})
1616

1717
await interaction.reply({embeds: [embed_pc_logs], flags: MessageFlags.Ephemeral });
18-
return;
1918
}
2019
};

interactions/buttons/category/logs/logs_quest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder} = require("discord.js");
1+
const {EmbedBuilder, MessageFlags} = require("discord.js");
22
module.exports = {
33
id: "logs_quest",
44

@@ -14,6 +14,5 @@ module.exports = {
1414
})
1515

1616
await interaction.reply({embeds: [embed_quest_logs], flags: MessageFlags.Ephemeral });
17-
return;
1817
}
1918
};

interactions/buttons/category/mods/manual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const embed_mods_manual = require("../../../slash/mods.js")
2-
2+
const MessageFlags = require("discord.js")
33
module.exports = {
44
id: "mods_manual",
55

interactions/buttons/category/mods/modmanager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const embed_mods_manager = require("../../../slash/mods.js")
2-
2+
const MessageFlags = require("discord.js")
33
module.exports = {
44
id: "mods_modmanager",
55

interactions/buttons/category/servers/bedrock_geyser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder} = require("discord.js");
1+
const {EmbedBuilder, MessageFlags} = require("discord.js");
22
module.exports = {
33
id: "bedrock_geyser",
44

@@ -12,6 +12,5 @@ module.exports = {
1212
iconURL: "https://images-ext-1.discordapp.net/external/uVW63D2qclMVEwdF5yp21Fqi7sOmOzNWyRiRiWhTGAM/%3Fsize%3D4096/https/cdn.discordapp.com/avatars/719815864135712799/08a1cc347410b8444f0ef68dc39c17a5.png?width=303&height=303"
1313
})
1414
await interaction.reply({embeds: [embed_bedrock_geyser], flags: MessageFlags.Ephemeral });
15-
return;
1615
}
1716
};

interactions/buttons/category/servers/simplevoicechat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder} = require("discord.js");
1+
const {EmbedBuilder, MessageFlags} = require("discord.js");
22

33
module.exports = {
44
id: "simple_voice_chat",
@@ -13,6 +13,5 @@ module.exports = {
1313
iconURL: "https://media.discordapp.net/attachments/1078126187064332359/1100222550027534416/08a1cc347410b8444f0ef68dc39c17a5.webp?width=405&height=405"
1414
})
1515
await interaction.reply({embeds: [embed_simple_voice_chat], flags: MessageFlags.Ephemeral });
16-
return;
1716
}
1817
};

interactions/select-menus/category/immersivemc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder} = require("discord.js");
1+
const {EmbedBuilder, MessageFlags} = require("discord.js");
22

33
module.exports = {
44
id: "immersivemc_select",

interactions/select-menus/category/selector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const MessageFlags = require("discord.js")
12
const embed_adb = ("../../slash/adb")
23
const embed_bedrock = ("../../slash/bedrock")
34
const embed_fixed = ("../../slash/fixed")

interactions/slash/crashplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder} = require('discord.js');
1+
const {EmbedBuilder, SlashCommandBuilder, MessageFlags} = require('discord.js');
22

33
module.exports = {
44
data: new SlashCommandBuilder()

interactions/slash/echo.js

Lines changed: 0 additions & 91 deletions
This file was deleted.

interactions/slash/embedcreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder, PermissionsBitField} = require("discord.js");
1+
const {EmbedBuilder, SlashCommandBuilder, PermissionsBitField, MessageFlags} = require("discord.js");
22
const {owner} = require("../../config.json");
33

44

interactions/slash/games.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {SlashCommandBuilder, EmbedBuilder} = require("discord.js");
1+
const {SlashCommandBuilder, EmbedBuilder, MessageFlags} = require("discord.js");
22
const {Hangman, Snake, Connect4, TicTacToe, MatchPairs} = require("discord-gamecord");
33

44
const error_game = new EmbedBuilder()
@@ -51,7 +51,6 @@ module.exports = {
5151

5252
await Game.startGame();
5353
Game.on("gameOver", result => {
54-
return;
5554
});
5655
}
5756

@@ -82,7 +81,6 @@ module.exports = {
8281

8382
await Game.startGame();
8483
Game.on("gameOver", result => {
85-
return;
8684
});
8785
}
8886

@@ -116,7 +114,6 @@ module.exports = {
116114

117115
await Game.startGame();
118116
Game.on("gameOver", result => {
119-
return;
120117
});
121118
} catch (error) {
122119
interaction.reply({embeds: [error_game], flags: MessageFlags.Ephemeral });
@@ -153,7 +150,6 @@ module.exports = {
153150

154151
await Game.startGame();
155152
Game.on("gameOver", result => {
156-
return;
157153
});
158154
} catch (error) {
159155
interaction.reply({embeds: [error_game], flags: MessageFlags.Ephemeral });
@@ -177,7 +173,6 @@ module.exports = {
177173

178174
await Game.startGame();
179175
Game.on("gameOver", result => {
180-
return;
181176
});
182177
}
183178
} catch (err) {

interactions/slash/guide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder} = require('discord.js');
1+
const {EmbedBuilder, SlashCommandBuilder, MessageFlags} = require('discord.js');
22

33
module.exports = {
44
data: new SlashCommandBuilder()

interactions/slash/loginquick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder} = require('discord.js');
1+
const {EmbedBuilder, SlashCommandBuilder, MessageFlags} = require('discord.js');
22

33
module.exports = {
44
data: new SlashCommandBuilder()

interactions/slash/lookup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder} = require('discord.js');
1+
const {EmbedBuilder, SlashCommandBuilder, MessageFlags} = require('discord.js');
22
const MCAPI = require('mojang-lib');
33

44
module.exports = {

interactions/slash/messagecreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {EmbedBuilder, SlashCommandBuilder, PermissionsBitField} = require("discord.js");
1+
const {EmbedBuilder, SlashCommandBuilder, PermissionsBitField, MessageFlags} = require("discord.js");
22
const {owner} = require("../../config.json");
33

44

interactions/slash/restartbot.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

interactions/slash/supportchannels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const {EmbedBuilder, SlashCommandBuilder} = require("discord.js");
1+
const {EmbedBuilder, SlashCommandBuilder, MessageFlags} = require("discord.js");
22

33
module.exports = {
44
data: new SlashCommandBuilder()
55
.setName("supportchannels")
66
.setDescription("Mentions the channels for support"),
7-
async execute(interaction, client) {
7+
async execute(interaction) {
88
const channelExceptions = ["945502948111290498", "946021441298649158"];
99
const embed_error_channels = new EmbedBuilder()
1010
.setTitle("Error!")

messages/defaultButtonError.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const MessageFlags = require("discord.js")
12
game_ids = ["connect4_1", "connect4_2", "connect4_3", "connect4_4", "connect4_5", "connect4_6", "connect4_7", "TicTacToe_", "approve_accept", "approve_reject", "hangman_", "hangman_stop", "hangman_Y", "hangman_Z", "snake_up", "snake_down", "snake_left", "snake_right", "snake_stop", "matchpairs_", "housefinder_"];
23

34
module.exports = {

messages/defaultModalError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
const MessageFlags = require("discord.js")
12
module.exports = {
23
async execute(interaction) {
34
await interaction.reply({
45
content: "There was an issue while fetching this modal! If the issue persists please contact <@317814254336081930>",
56
flags: MessageFlags.Ephemeral
67
});
7-
return;
88
}
99
};

messages/defaultSelectError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
const MessageFlags = require("discord.js")
12
module.exports = {
23
async execute(interaction) {
34
await interaction.reply({
45
content: "There was an issue while fetching this select menu option! If the issue persists please contact <@317814254336081930>",
56
flags: MessageFlags.Ephemeral
67
});
7-
return;
88
}
99
};

0 commit comments

Comments
 (0)