Added instructinos command

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-12-23 21:14:30 +01:00
parent 1e329b41fe
commit 4d7defd0ca
2 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js")
const { color, devMessage, instructionsgif } = require("../../config/options.json")
module.exports = {
name: "instructions",
description: "Instructions for verification",
type: "slash",
dev: true,
public: false,
data: new SlashCommandBuilder()
.setName("instructions")
.setDescription("Instructions for verification")
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
async execute(interaction) {
const embedColor = Number(color.replace("#", "0x"))
await interaction.reply({
embeds: [{
title: "Verification",
description: "1. Log onto hypixel.\n" +
"2. Right click with the head in your hotbar.\n" +
"3. Click on the social media icon.\n" +
"4. Click on the discord icon.\n" +
"5. Type your username in the chat and press enter.\n" +
"6. Run the `/verify` command in this channel.\n",
color: embedColor,
footer: {
text: interaction.guild.name + " | " + devMessage,
icon_url: interaction.guild.iconURL({ dynamic: true })
},
image: {
url: instructionsgif
}
}]
})
}
}