Skip to content

Commit

Permalink
Downgrade unknown message type error to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Jun 10, 2019
1 parent 836a041 commit bb887e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Message.js
Expand Up @@ -100,7 +100,7 @@ class Message extends Base {
} else if(this.type === 7) {
data.content = SystemJoinMessages[~~(this.createdAt % SystemJoinMessages.length)].replace(/%user%/g, this.author.mention);
} else {
throw new Error("Unhandled MESSAGE_CREATE type: " + JSON.stringify(data, null, 2));
client.emit("warn", "Unhandled MESSAGE_CREATE type: " + JSON.stringify(data, null, 2));
}

this.update(data, client);
Expand Down

0 comments on commit bb887e4

Please sign in to comment.