[ERROR] Encountered error on event listener "CorePreChatInputCommandRun"
I'm getting this error repeatedly on an OwnerOnly precondition:
3 Replies
I'm getting this error on an OwnerOnly precondition check:
The precondition works, but this error populates when a not-owner uses the command. Precondition code in the following reply.
This is the OwnerOnly precondition, very close to what's demonstrated in the guide:
Everything works ... just, as mentioned before, the error spits when the command this is currently used with (Ping) is executed by a not-owner. This leaves me scratching my head. I've poured over the docs, glanced at the source. I don't know what I'm missing. Any help is appreciated!
Solution
you need to
return this.error
🤦♂️
Why is it that the things I struggle with the most have such a simple--and often overlooked--solution?
Thank you. That fixed it.