blob: 6f95b4616b2f17a35809df3839109a5d55b913a0 [file] [log] [blame]
import Discord, { CommandInteraction, MessageActionRow, MessageButton } from "discord.js";
import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
import confirmationMessage from "../../utils/confirmationMessage.js";
import getEmojiByName from "../../utils/getEmojiByName.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("role")
.setDescription("Sets or shows the role given to users after using /verify")
.addRoleOption(option => option.setName("role").setDescription("The role to give after verifying"))
const callback = async (interaction: CommandInteraction): Promise<any> => {
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
let member = (interaction.member as Discord.GuildMember)
if (!member.permissions.has("MANAGE_ROLES")) throw "You must have the *Manage Roles* permission to use this command"
return true;
}
export { command };
export { callback };
export { check };