error fixes

This commit is contained in:
2022-04-01 12:56:55 -05:00
parent fbb70a811c
commit 4d886df641
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { ButtonInteraction, Client, GuildMember, Interaction, MessageButton, MessageSelectMenu, SelectMenuInteraction } from "discord.js";
import { emsg, errorMessage } from "discordslash";
import { emsg } from "discordslash";
import * as Opt from "../types/Opt";
import { getGuild, getMember } from "../util/discord";

View File

@@ -5,9 +5,9 @@ import { RolesAllCommand, RolesCommand } from './commands';
export function initSlash() {
const Categories: OptionChoices[] = InteractionRoles.map((opt, i) => ({
const Categories: OptionChoices[] = InteractionRoles.map(opt => ({
name: opt.message,
value: i
value: opt.id
}));
addCommand([
@@ -36,11 +36,13 @@ export function initSlash() {
new CommandOptionGenerator()
.setName('category')
.setType('string')
.setDescription(Lang.get('command.rolesall.description.category'))
.addChoice(Categories),
new CommandOptionGenerator()
.setName('channel')
.setType('channel')
.setDescription(Lang.get('command.rolesall.description.command'))
])