mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
join arrays with new lines when sending as messages
This commit is contained in:
@@ -279,6 +279,7 @@ class Message {
|
||||
* .catch(console.log);
|
||||
*/
|
||||
reply(content, options = {}) {
|
||||
content = this.client.resolver.resolveString(content);
|
||||
const newContent = this.guild ? `${this.author}, ${content}` : content;
|
||||
return this.client.rest.methods.sendMessage(this.channel, newContent, options.tts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user