mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Default message.content to normal message
This commit is contained in:
@@ -63,9 +63,8 @@ var Message = (function (_Equality) {
|
||||
this.author = client.internal.users.add(new _User2["default"](data.author, client));
|
||||
}
|
||||
|
||||
if (this.type === 0) {
|
||||
this.content = data.content;
|
||||
} else if (this.type === 1) {
|
||||
this.content = data.content;
|
||||
if (!this.type) {} else if (this.type === 1) {
|
||||
this.content = this.author.mention() + " added <@" + data.mentions[0].id + ">.";
|
||||
} else if (this.type === 2) {
|
||||
if (this.author.id === data.mentions[0].id) {
|
||||
|
||||
@@ -38,8 +38,8 @@ export default class Message extends Equality{
|
||||
this.author = client.internal.users.add(new User(data.author, client));
|
||||
}
|
||||
|
||||
if(this.type === 0) {
|
||||
this.content = data.content;
|
||||
this.content = data.content;
|
||||
if(!this.type) {
|
||||
} else if(this.type === 1) {
|
||||
this.content = this.author.mention() + " added <@" + data.mentions[0].id + ">.";
|
||||
} else if(this.type === 2) {
|
||||
|
||||
Reference in New Issue
Block a user