You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual problem being this.lastResponse.deleted.
I have read the discord.js issue, and since it is already merged this will need to get fixed before upgrading to discord.js v14. The issue also mentions a counterpart to the deprecated function: Message#detelable, and if I look into the code they actually do the same check (of course deletable returns the opposite from deleted):
When updating a command so that the bot also needs to rewrite the command output, I get a deprecation message:
When looking a bit deeper I was able to get the stack trace, where I found what triggered it:
discord.js/src/structures/Message.js:362
and also the offending code, located at:
discord-akairo/src/struct/commands/CommandUtil.js:103
, insideCommandUtil#send
:if (this.shouldEdit && (this.command ? this.command.editable : true) && !hasFiles && !this.lastResponse.deleted && !this.lastResponse.attachments.size) {
The actual problem being
this.lastResponse.deleted
.I have read the discord.js issue, and since it is already merged this will need to get fixed before upgrading to discord.js v14. The issue also mentions a counterpart to the deprecated function:
Message#detelable
, and if I look into the code they actually do the same check (of course deletable returns the opposite from deleted):get deleted():
get deletable():
PR with required changes: #253
The text was updated successfully, but these errors were encountered: