Checking message user exists before checking ID in Trivia.
This commit is contained in:
parent
7cb5c59ae7
commit
e614cd4b1c
|
@ -166,7 +166,7 @@ function onCommand(args, context) {
|
|||
}
|
||||
|
||||
async function onMessage(message, context) {
|
||||
if (!game || context.user.id === config.user.id) {
|
||||
if (!game || context.user?.id === config.user?.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue