Trivia: Fix type error

This commit is contained in:
Annika 2021-08-16 09:20:14 -07:00 committed by GitHub
parent d18993d3c3
commit 153f223e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);