Merge branch 'master' of https://gitlab.com/loicbersier/discordbot
This commit is contained in:
commit
3becb69642
1 changed files with 10 additions and 2 deletions
|
@ -158,11 +158,19 @@ 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (attach) {
|
||||||
return message.channel.send(text, {files: [attach]});
|
return message.channel.send(text, {files: [attach]});
|
||||||
|
} else {
|
||||||
|
return message.channel.send(text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue