Checking message user exists before checking ID in Trivia.

This commit is contained in:
ThePendulum 2021-11-29 18:44:44 +01:00
parent 7cb5c59ae7
commit e614cd4b1c
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ function onCommand(args, context) {
} }
async function onMessage(message, context) { async function onMessage(message, context) {
if (!game || context.user.id === config.user.id) { if (!game || context.user?.id === config.user?.id) {
return; return;
} }