Skip to content

Commit

Permalink
fix safeSend
Browse files Browse the repository at this point in the history
TypeError: this.safeSend is not a function
  • Loading branch information
saiteja-madha committed Sep 24, 2022
1 parent 244a641 commit 209bfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/extenders/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 209bfdc

Please sign in to comment.