From 209bfdc4d10570909fd4d685890768279b68f6c7 Mon Sep 17 00:00:00 2001 From: saiteja-madha Date: Fri, 23 Sep 2022 17:37:54 -0700 Subject: [PATCH] fix safeSend TypeError: this.safeSend is not a function --- src/helpers/extenders/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/extenders/Message.js b/src/helpers/extenders/Message.js index f1df811a0..9138eb215 100644 --- a/src/helpers/extenders/Message.js +++ b/src/helpers/extenders/Message.js @@ -12,7 +12,7 @@ Message.prototype.safeReply = async function (content, seconds) { perms.push("ReadMessageHistory"); if (this.channel.type !== "DM" && !this.channel.permissionsFor(this.guild.members.me).has(perms)) { - return this.safeSend(content, seconds); + return this.channel.safeSend(content, seconds); } try {