Adding staff apply

This commit is contained in:
2023-03-19 14:57:50 +01:00
parent 9dd175dd82
commit 839b98e5e8
8 changed files with 212 additions and 28 deletions

View File

@@ -8,8 +8,6 @@ module.exports = {
async execute(interaction) {
await interaction.deferReply();
const user = interaction.user;
const channel = interaction.channel;
const guild = interaction.guild;
@@ -26,8 +24,6 @@ module.exports = {
}]
});
// fetch the first message in the channel and disable the buttons on it
const message = await channel.messages.fetch({ limit: 1 });
const messageID = message.first().id;
@@ -61,9 +57,9 @@ module.exports = {
});
await interaction.editReply({
await interaction.reply({
embeds: [{
title: applicantUsername + " - Application",
title: applicantUsername + " - Guild Application",
description: "Application accepted by <@" + user.id + ">.\n\nPress the button below to delete this channel.\n**When the user is added to the guild.**",
color: embedColor,
thumbnail: {