Skip to content

Commit

Permalink
Support interaction messages (abalabahaha#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
flamableassassin authored Mar 24, 2021
1 parent aec3f82 commit 64cf536
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ declare namespace Eris {
GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: 16;
GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: 17;
REPLY: 19;
APPLICATION_COMMAND: 20;
};
Permissions: {
createInstantInvite: 1;
Expand Down
3 changes: 2 additions & 1 deletion lib/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ module.exports.MessageTypes = {
GUILD_DISCOVERY_REQUALIFIED: 15,
GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: 16,
GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: 17,
REPLY: 19
REPLY: 19,
APPLICATION_COMMAND: 20
};

module.exports.ChannelTypes = {
Expand Down
3 changes: 3 additions & 0 deletions lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ class Message extends Base {
case MessageTypes.REPLY: {
break;
}
case MessageTypes.APPLICATION_COMMAND: {
break;
}
default: {
client.emit("warn", `Unhandled MESSAGE_CREATE type: ${JSON.stringify(data, null, 2)}`);
break;
Expand Down

0 comments on commit 64cf536

Please sign in to comment.