Adding inactivity log command
This commit is contained in:
@@ -28,6 +28,15 @@ 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("sendinactivityapplication")
|
||||||
|
.setDescription("Send the application message to a channel.")
|
||||||
|
.addChannelOption((option) =>
|
||||||
|
option
|
||||||
|
.setName("channel")
|
||||||
|
.setDescription("The channel to send the application to.")
|
||||||
|
.setRequired(true)))
|
||||||
.addSubcommand((subcommand) =>
|
.addSubcommand((subcommand) =>
|
||||||
subcommand
|
subcommand
|
||||||
.setName("sendguildinfo")
|
.setName("sendguildinfo")
|
||||||
@@ -115,6 +124,37 @@ module.exports = {
|
|||||||
await interaction.reply({ content: "Message sent", ephemeral: true });
|
await interaction.reply({ content: "Message sent", ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (subcommand === "sendinactivityapplication") {
|
||||||
|
const channel = interaction.options.getChannel("channel");
|
||||||
|
|
||||||
|
await channel.send({
|
||||||
|
embeds: [
|
||||||
|
{
|
||||||
|
title: "Inactivity Log",
|
||||||
|
description: "You can send an inactivity log by clicking the button below.",
|
||||||
|
color: embedColor,
|
||||||
|
footer: {
|
||||||
|
text: interaction.guild.name + " | Developed by @Taken#0002",
|
||||||
|
iconURL: interaction.guild.iconURL({ dynamic: true })
|
||||||
|
},
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.guild.iconURL({ dynamic: true })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
components: [
|
||||||
|
new ActionRowBuilder()
|
||||||
|
.addComponents(new ButtonBuilder()
|
||||||
|
.setCustomId("inactivitylog")
|
||||||
|
.setLabel("Submit")
|
||||||
|
.setStyle(ButtonStyle.Primary)
|
||||||
|
.setEmoji({ name: "✅" }))
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
await interaction.reply({ content: "Message sent", ephemeral: true });
|
||||||
|
}
|
||||||
|
|
||||||
if (subcommand !== "sendguildinfo" || "sendrequirements" || "sendrules-info") {
|
if (subcommand !== "sendguildinfo" || "sendrequirements" || "sendrules-info") {
|
||||||
await interaction.reply({ content: "In development.", ephemeral: true });
|
await interaction.reply({ content: "In development.", ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user