gistfile1.txt
· 7.0 KiB · Text
Eredeti
root@docker:/opt/docker/tg-bot-ts# docker exec tg-bot-ts npx ts-node src/index.ts --register
Logged in as The Arbiter#9050
Messages loaded — 8 user file(s).
/app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35
}
^
ExpectedConstraintError: Invalid Array length
at Object.run (/app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35:1)
at /app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2
at Array.reduce (<anonymous>)
at _ArrayValidator.parse (/app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2)
at validateMaxOptionsLength (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/Assertions.ts:42:26)
at validateRequiredParameters (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/Assertions.ts:57:2)
at MixedClass.toJSON (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/mixins/SharedSlashCommand.ts:151:3)
at registerCommands (/app/src/index.ts:25:62)
at Client.<anonymous> (/app/src/index.ts:63:11)
at Object.onceWrapper (node:events:634:26) {
constraint: 's.array(T).lengthLessThanOrEqual()',
given: [
SlashCommandSubcommandBuilder {
name: 'set-lock-message',
name_localizations: undefined,
description: 'Set default lock message',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'reset-lock-message',
name_localizations: undefined,
description: 'Reset lock message to default',
description_localizations: undefined,
options: []
},
SlashCommandSubcommandBuilder {
name: 'set-confirm-message',
name_localizations: undefined,
description: 'Set default confirm message',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'reset-confirm-message',
name_localizations: undefined,
description: 'Reset confirm message to default',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-officer-roles',
name_localizations: undefined,
description: 'Set officer roles (comma-separated)',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'add-officer-role',
name_localizations: undefined,
description: 'Add an officer role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'remove-officer-role',
name_localizations: undefined,
description: 'Remove an officer role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'reset-officer-roles',
name_localizations: undefined,
description: 'Reset officer roles to default',
description_localizations: undefined,
options: []
},
SlashCommandSubcommandBuilder {
name: 'set-config-roles',
name_localizations: undefined,
description: 'Set config roles (comma-separated)',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'add-config-role',
name_localizations: undefined,
description: 'Add a config role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'remove-config-role',
name_localizations: undefined,
description: 'Remove a config role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'reset-config-roles',
name_localizations: undefined,
description: 'Reset config roles to default',
description_localizations: undefined,
options: []
},
SlashCommandSubcommandBuilder {
name: 'set-tag-roles',
name_localizations: undefined,
description: 'Set roles to tag on confirm (comma-separated)',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'add-tag-role',
name_localizations: undefined,
description: 'Add a tag role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'remove-tag-role',
name_localizations: undefined,
description: 'Remove a tag role',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'reset-tag-roles',
name_localizations: undefined,
description: 'Reset tag roles to default',
description_localizations: undefined,
options: []
},
SlashCommandSubcommandBuilder {
name: 'set-poll-channel',
name_localizations: undefined,
description: 'Set poll channel',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-results-channel',
name_localizations: undefined,
description: 'Set results channel',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-score-channel',
name_localizations: undefined,
description: 'Set score channel',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'add-slot',
name_localizations: undefined,
description: 'Add a TG slot',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'remove-slot',
name_localizations: undefined,
description: 'Remove a TG slot',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-score-window',
name_localizations: undefined,
description: 'Set score submission window (hours)',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-tg-duration',
name_localizations: undefined,
description: 'Set TG duration (minutes)',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-nation-source',
name_localizations: undefined,
description: 'Set source of truth nation',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-wrank-goal',
name_localizations: undefined,
description: 'Set W.Rank TG goal',
description_localizations: undefined,
options: [Array]
},
SlashCommandSubcommandBuilder {
name: 'set-wrank-post-on-reset',
name_localizations: undefined,
description: 'Post leaderboard on weekly reset?',
description_localizations: undefined,
options: [Array]
}
],
expected: 'expected.length <= 25'
}
| 1 | root@docker:/opt/docker/tg-bot-ts# docker exec tg-bot-ts npx ts-node src/index.ts --register |
| 2 | Logged in as The Arbiter#9050 |
| 3 | Messages loaded — 8 user file(s). |
| 4 | /app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35 |
| 5 | } |
| 6 | ^ |
| 7 | ExpectedConstraintError: Invalid Array length |
| 8 | at Object.run (/app/node_modules/@sapphire/shapeshift/src/constraints/ArrayConstraints.ts:35:1) |
| 9 | at /app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2 |
| 10 | at Array.reduce (<anonymous>) |
| 11 | at _ArrayValidator.parse (/app/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:126:2) |
| 12 | at validateMaxOptionsLength (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/Assertions.ts:42:26) |
| 13 | at validateRequiredParameters (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/Assertions.ts:57:2) |
| 14 | at MixedClass.toJSON (/app/node_modules/@discordjs/builders/src/interactions/slashCommands/mixins/SharedSlashCommand.ts:151:3) |
| 15 | at registerCommands (/app/src/index.ts:25:62) |
| 16 | at Client.<anonymous> (/app/src/index.ts:63:11) |
| 17 | at Object.onceWrapper (node:events:634:26) { |
| 18 | constraint: 's.array(T).lengthLessThanOrEqual()', |
| 19 | given: [ |
| 20 | SlashCommandSubcommandBuilder { |
| 21 | name: 'set-lock-message', |
| 22 | name_localizations: undefined, |
| 23 | description: 'Set default lock message', |
| 24 | description_localizations: undefined, |
| 25 | options: [Array] |
| 26 | }, |
| 27 | SlashCommandSubcommandBuilder { |
| 28 | name: 'reset-lock-message', |
| 29 | name_localizations: undefined, |
| 30 | description: 'Reset lock message to default', |
| 31 | description_localizations: undefined, |
| 32 | options: [] |
| 33 | }, |
| 34 | SlashCommandSubcommandBuilder { |
| 35 | name: 'set-confirm-message', |
| 36 | name_localizations: undefined, |
| 37 | description: 'Set default confirm message', |
| 38 | description_localizations: undefined, |
| 39 | options: [Array] |
| 40 | }, |
| 41 | SlashCommandSubcommandBuilder { |
| 42 | name: 'reset-confirm-message', |
| 43 | name_localizations: undefined, |
| 44 | description: 'Reset confirm message to default', |
| 45 | description_localizations: undefined, |
| 46 | options: [Array] |
| 47 | }, |
| 48 | SlashCommandSubcommandBuilder { |
| 49 | name: 'set-officer-roles', |
| 50 | name_localizations: undefined, |
| 51 | description: 'Set officer roles (comma-separated)', |
| 52 | description_localizations: undefined, |
| 53 | options: [Array] |
| 54 | }, |
| 55 | SlashCommandSubcommandBuilder { |
| 56 | name: 'add-officer-role', |
| 57 | name_localizations: undefined, |
| 58 | description: 'Add an officer role', |
| 59 | description_localizations: undefined, |
| 60 | options: [Array] |
| 61 | }, |
| 62 | SlashCommandSubcommandBuilder { |
| 63 | name: 'remove-officer-role', |
| 64 | name_localizations: undefined, |
| 65 | description: 'Remove an officer role', |
| 66 | description_localizations: undefined, |
| 67 | options: [Array] |
| 68 | }, |
| 69 | SlashCommandSubcommandBuilder { |
| 70 | name: 'reset-officer-roles', |
| 71 | name_localizations: undefined, |
| 72 | description: 'Reset officer roles to default', |
| 73 | description_localizations: undefined, |
| 74 | options: [] |
| 75 | }, |
| 76 | SlashCommandSubcommandBuilder { |
| 77 | name: 'set-config-roles', |
| 78 | name_localizations: undefined, |
| 79 | description: 'Set config roles (comma-separated)', |
| 80 | description_localizations: undefined, |
| 81 | options: [Array] |
| 82 | }, |
| 83 | SlashCommandSubcommandBuilder { |
| 84 | name: 'add-config-role', |
| 85 | name_localizations: undefined, |
| 86 | description: 'Add a config role', |
| 87 | description_localizations: undefined, |
| 88 | options: [Array] |
| 89 | }, |
| 90 | SlashCommandSubcommandBuilder { |
| 91 | name: 'remove-config-role', |
| 92 | name_localizations: undefined, |
| 93 | description: 'Remove a config role', |
| 94 | description_localizations: undefined, |
| 95 | options: [Array] |
| 96 | }, |
| 97 | SlashCommandSubcommandBuilder { |
| 98 | name: 'reset-config-roles', |
| 99 | name_localizations: undefined, |
| 100 | description: 'Reset config roles to default', |
| 101 | description_localizations: undefined, |
| 102 | options: [] |
| 103 | }, |
| 104 | SlashCommandSubcommandBuilder { |
| 105 | name: 'set-tag-roles', |
| 106 | name_localizations: undefined, |
| 107 | description: 'Set roles to tag on confirm (comma-separated)', |
| 108 | description_localizations: undefined, |
| 109 | options: [Array] |
| 110 | }, |
| 111 | SlashCommandSubcommandBuilder { |
| 112 | name: 'add-tag-role', |
| 113 | name_localizations: undefined, |
| 114 | description: 'Add a tag role', |
| 115 | description_localizations: undefined, |
| 116 | options: [Array] |
| 117 | }, |
| 118 | SlashCommandSubcommandBuilder { |
| 119 | name: 'remove-tag-role', |
| 120 | name_localizations: undefined, |
| 121 | description: 'Remove a tag role', |
| 122 | description_localizations: undefined, |
| 123 | options: [Array] |
| 124 | }, |
| 125 | SlashCommandSubcommandBuilder { |
| 126 | name: 'reset-tag-roles', |
| 127 | name_localizations: undefined, |
| 128 | description: 'Reset tag roles to default', |
| 129 | description_localizations: undefined, |
| 130 | options: [] |
| 131 | }, |
| 132 | SlashCommandSubcommandBuilder { |
| 133 | name: 'set-poll-channel', |
| 134 | name_localizations: undefined, |
| 135 | description: 'Set poll channel', |
| 136 | description_localizations: undefined, |
| 137 | options: [Array] |
| 138 | }, |
| 139 | SlashCommandSubcommandBuilder { |
| 140 | name: 'set-results-channel', |
| 141 | name_localizations: undefined, |
| 142 | description: 'Set results channel', |
| 143 | description_localizations: undefined, |
| 144 | options: [Array] |
| 145 | }, |
| 146 | SlashCommandSubcommandBuilder { |
| 147 | name: 'set-score-channel', |
| 148 | name_localizations: undefined, |
| 149 | description: 'Set score channel', |
| 150 | description_localizations: undefined, |
| 151 | options: [Array] |
| 152 | }, |
| 153 | SlashCommandSubcommandBuilder { |
| 154 | name: 'add-slot', |
| 155 | name_localizations: undefined, |
| 156 | description: 'Add a TG slot', |
| 157 | description_localizations: undefined, |
| 158 | options: [Array] |
| 159 | }, |
| 160 | SlashCommandSubcommandBuilder { |
| 161 | name: 'remove-slot', |
| 162 | name_localizations: undefined, |
| 163 | description: 'Remove a TG slot', |
| 164 | description_localizations: undefined, |
| 165 | options: [Array] |
| 166 | }, |
| 167 | SlashCommandSubcommandBuilder { |
| 168 | name: 'set-score-window', |
| 169 | name_localizations: undefined, |
| 170 | description: 'Set score submission window (hours)', |
| 171 | description_localizations: undefined, |
| 172 | options: [Array] |
| 173 | }, |
| 174 | SlashCommandSubcommandBuilder { |
| 175 | name: 'set-tg-duration', |
| 176 | name_localizations: undefined, |
| 177 | description: 'Set TG duration (minutes)', |
| 178 | description_localizations: undefined, |
| 179 | options: [Array] |
| 180 | }, |
| 181 | SlashCommandSubcommandBuilder { |
| 182 | name: 'set-nation-source', |
| 183 | name_localizations: undefined, |
| 184 | description: 'Set source of truth nation', |
| 185 | description_localizations: undefined, |
| 186 | options: [Array] |
| 187 | }, |
| 188 | SlashCommandSubcommandBuilder { |
| 189 | name: 'set-wrank-goal', |
| 190 | name_localizations: undefined, |
| 191 | description: 'Set W.Rank TG goal', |
| 192 | description_localizations: undefined, |
| 193 | options: [Array] |
| 194 | }, |
| 195 | SlashCommandSubcommandBuilder { |
| 196 | name: 'set-wrank-post-on-reset', |
| 197 | name_localizations: undefined, |
| 198 | description: 'Post leaderboard on weekly reset?', |
| 199 | description_localizations: undefined, |
| 200 | options: [Array] |
| 201 | } |
| 202 | ], |
| 203 | expected: 'expected.length <= 25' |
| 204 | } |