Added new message and removed unused
This commit is contained in:
@@ -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 });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -90,4 +90,4 @@ module.exports = {
|
|||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user