mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 18:57:15 -05:00
Trivia: Fix type error
This commit is contained in:
parent
d18993d3c3
commit
153f223e88
|
|
@ -1524,7 +1524,7 @@ const triviaCommands: Chat.ChatCommands = {
|
|||
}
|
||||
if (!MODES[mode]) return this.errorReply(this.tr`"${mode}" is an invalid mode.`);
|
||||
|
||||
let categories: string[] | 'all' | 'random' = targets[1]
|
||||
let categories: ID[] | 'all' | 'random' = targets[1]
|
||||
.split('+')
|
||||
.map(cat => {
|
||||
const id = toID(cat);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user