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();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
||||||
if (attach) {
|
|
||||||
return message.channel.send(embed, {files: [attach]});
|
return message.channel.send(embed, {files: [attach]});
|
||||||
} else {
|
|
||||||
return message.channel.send(embed);
|
|
||||||
}
|
}
|
||||||
}
|
return message.channel.send(text), {files: [attach]};
|
||||||
return message.channel.send(text);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue