Skip to content

Commit

Permalink
Update UnknownInteraction.message
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Aug 23, 2021
1 parent 857f38b commit bd11bd9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/structures/UnknownInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Interaction = require("./Interaction");
const Message = require("./Message");
const Member = require("./Member");
const User = require("./User");
const {InteractionResponseTypes, MessageFlags} = require("../Constants");
const {InteractionResponseTypes} = require("../Constants");

/**
* Represents an unknown interaction. See Interaction for more properties.
Expand Down Expand Up @@ -39,11 +39,7 @@ class UnknownInteraction extends Interaction {
}

if(info.message !== undefined) {
if(info.message.flags & MessageFlags.EPHEMERAL) {
this.message = info.message;
} else {
this.message = new Message(info.message, this._client);
}
this.message = new Message(info.message, this._client);
}

if(info.user !== undefined) {
Expand Down

0 comments on commit bd11bd9

Please sign in to comment.