Merge branch 'dev' into 'main'

Added new message and removed unused

See merge request illegitimate/illegitimate-bot!13
This commit is contained in:
2023-08-27 21:45:09 +00:00
2 changed files with 4 additions and 21 deletions

View File

@@ -55,18 +55,6 @@ module.exports = {
.setName("channel") .setName("channel")
.setDescription("The channel to send the application to.") .setDescription("The channel to send the application to.")
.setRequired(true))) .setRequired(true)))
.addSubcommand((subcommand) =>
subcommand
.setName("sendguildinfo")
.setDescription("Send the guild info message to a channel."))
.addSubcommand((subcommand) =>
subcommand
.setName("sendrequirements")
.setDescription("Send the guild requirements message to a channel."))
.addSubcommand((subcommand) =>
subcommand
.setName("sendrules-info")
.setDescription("Send the rules and info message to a channel."))
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false), .setDMPermission(false),
@@ -76,10 +64,6 @@ module.exports = {
const subcommand = interaction.options.getSubcommand(); const subcommand = interaction.options.getSubcommand();
const embedColor = Number(color.replace("#", "0x")); const embedColor = Number(color.replace("#", "0x"));
if (subcommand === "reload") {
await interaction.reply({ content: "In development", ephemeral: true });
return;
}
if (subcommand === "sendguildapplication") { if (subcommand === "sendguildapplication") {
const channel = interaction.options.getChannel("channel"); const channel = interaction.options.getChannel("channel");
@@ -198,6 +182,7 @@ module.exports = {
.setEmoji({ name: "✅" })) .setEmoji({ name: "✅" }))
] ]
}); });
await interaction.reply({ content: "Message sent", ephemeral: true });
} }
@@ -222,16 +207,14 @@ module.exports = {
components: [ components: [
new ActionRowBuilder() new ActionRowBuilder()
.addComponents(new ButtonBuilder() .addComponents(new ButtonBuilder()
.setCustomId("waitingListUpdate") .setCustomId("waitinglistupdate")
.setLabel("Update") .setLabel("Update")
.setStyle(ButtonStyle.Primary) .setStyle(ButtonStyle.Primary)
.setEmoji({ name: "✅" })) .setEmoji({ name: "✅" }))
] ]
}); });
await interaction.reply({ content: "Message sent", ephemeral: true });
} }
if (subcommand !== "sendguildinfo" || "sendrequirements" || "sendrules-info") {
await interaction.reply({ content: "In development.", ephemeral: true });
}
} }
}; };

View File

@@ -90,4 +90,4 @@ module.exports = {
}] }]
}); });
} }
}; };