error fixes
This commit is contained in:
@@ -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'))
|
||||
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user