renamed/moved commands

This commit is contained in:
2022-02-11 13:18:17 -06:00
parent e444167f07
commit 3ed56b7927
6 changed files with 115 additions and 69 deletions

11
dist/discord.js vendored
View File

@@ -7,16 +7,21 @@ const v9_1 = require("discord-api-types/v9");
const commands = [
{
name: 'queue',
description: 'get queue info or initialize a queue for this channel',
description: 'initialize a queue for this channel',
options: [
{
type: 4,
name: 'teamsize',
description: 'size of each team',
min_value: 1
min_value: 1,
required: true
}
]
},
{
name: 'close',
description: 'close the queue for this channel'
},
{
name: 'join',
description: 'join the active queue'
@@ -41,7 +46,7 @@ const commands = [
}
]
}
];
], commandNames = commands.map(c => c.name);
/**
* register/reload commands on guild(s)
* @param token discord bot token