make variadic lists force at least one parameter + grammar corrections

This commit is contained in:
Nathaniel Mason 2022-04-22 21:16:14 +01:00
parent 7d10366f01
commit 5a7040767e
6 changed files with 5 additions and 6 deletions

View File

@ -7,7 +7,7 @@ module.exports = {
options: [...Array(10).keys()].map(i => ({
name: `option${i + 1}`,
description: 'Another option',
required: false,
required: i === 0,
type: Constants.ApplicationCommandOptionTypes.STRING
})),

View File

@ -10,7 +10,7 @@ const gifchoices = [
module.exports = {
name: require('path').parse(__filename).name,
description: 'Noms an user!',
description: 'Noms a user!',
options: [{
name: 'user',
description: 'The user to nom',

View File

@ -7,7 +7,7 @@ module.exports = {
options: [...Array(10).keys()].map(i => ({
name: `option${i + 1}`,
description: 'Another option',
required: false,
required: i === 0,
type: Constants.ApplicationCommandOptionTypes.STRING
})),

View File

@ -3,7 +3,7 @@ const { Constants } = require('discord.js');
module.exports = {
name: require('path').parse(__filename).name,
description: 'Slaps an user!',
description: 'Slaps a user!',
options: [{
name: 'user',
description: 'The user to slap',

View File

@ -9,7 +9,7 @@ const gifchoices = [
module.exports = {
name: require('path').parse(__filename).name,
description: 'Snuggle an user!',
description: 'Snuggle a user!',
options: [{
name: 'user',
description: 'The user to snuggle',

View File

@ -57,7 +57,6 @@ client.once('ready', async () => {
}
client.commands.forEach(async command => {
console.log(command);
if (sandboxSettings.enabled && !existingLocal.map(x => x.name).includes(command.name)) {
await localCommands.create(command);
// console.log(`created new local command ${command.name}`);