Skip to content

Commit

Permalink
🐛 Fix messages in DMS
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Dec 17, 2020
1 parent 26a9971 commit 5777c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion events/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ module.exports = class {
const customCommand = message.guild ? data.guild.customCommands.find((c) => c.name === command) : null;
const customCommandAnswer = customCommand ? customCommandAnswer.answer : "";

if(!cmd && !customCommandAnswer){
if(!cmd && !customCommandAnswer && message.guild) return;
else if (!cmd && !customCommandAnswer && !message.guild) {
return message.sendT("misc:HELLO_DM", {
username: message.author.username
});
Expand Down

0 comments on commit 5777c3a

Please sign in to comment.