forked from Supositware/Haha-Yes
fix send attachment
This commit is contained in:
parent
d40dff711f
commit
a1216c0ca1
1 changed files with 4 additions and 6 deletions
|
@ -158,13 +158,11 @@ class messageListener extends Listener {
|
|||
.setTimestamp();
|
||||
|
||||
|
||||
if (attach) {
|
||||
return message.channel.send(embed, {files: [attach]});
|
||||
} else {
|
||||
return message.channel.send(embed);
|
||||
}
|
||||
|
||||
return message.channel.send(embed, {files: [attach]});
|
||||
|
||||
}
|
||||
return message.channel.send(text);
|
||||
return message.channel.send(text), {files: [attach]};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue