Checking message user exists before checking ID in Trivia.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user