最終更新 1 month ago

nuno revised this gist 1 month ago. Go to revision

1 file changed, 204 insertions

gistfile1.txt(file created)

@@ -0,0 +1,204 @@
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 + }
Newer Older