Error
This error is logged to the console once a member gets their message deleted because they don't have enough permissions to run the command, I have no idea what is this error about
25 Replies
Show code
wtf ararou
oh wait what
what code
thats an internal one
uh
i have never seen that before
it's weird because the precondition works as intended
ya idk what thats about
never have seen an error inside the internal listeners before
show the precondition
.
Yeah that'll do it
Lemme show you one of mine
It's probably to do with you not returning this.error()
yeah
Really, you should be handling the message deleting within the CommandDenied listener or whatever it's called
sapphire will throw a fit with preconditions if you dont include that
yeah denied
Could do
Then check in your CommandDenied listener if the message is null, delete the message otherwise send the message
Or just simply an empty this.error() if that works
Cause message will be undefined anyway
Something like this?
Yes
rawError: { message: 'Cannot send an empty message', code: 50006 },
Is that still coming from the precondition file?
looks like it's from messageCommandDenied
it's probably because there i'm trying to send the error message
That's exactly why
do i simply delete the file or
No, just add a check if message isn't undefined
worked perfectly, ty
No problem