Skip to content

Commit

Permalink
Fix Error: Only iterables may be used in a SetType (JustCat80#68)
Browse files Browse the repository at this point in the history
Fix allowed_mentions in interaction responses

Co-Authored-By: Gwee&Kwee <[email protected]>
  • Loading branch information
JustCat80 and GweeKwee committed Sep 16, 2021
1 parent 11ef7ea commit acc1d19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/structures/CommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class CommandInteraction extends Interaction {
embeds: content.embeds,
tts: content.tts,
flags: content.flags,
allowed_mentions: content.allowedMentions,
allowed_mentions: content.allowed_mentions,
components: content.components
}
}, content.file).then(() => this.update());
Expand Down
4 changes: 2 additions & 2 deletions lib/structures/ComponentInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ComponentInteraction extends Interaction {
embeds: content.embeds,
tts: content.tts,
flags: content.flags,
allowed_mentions: content.allowedMentions,
allowed_mentions: content.allowed_mentions,
components: content.components
}
}, content.file).then(() => this.update());
Expand Down Expand Up @@ -388,7 +388,7 @@ class ComponentInteraction extends Interaction {
embeds: content.embeds,
tts: content.tts,
flags: content.flags,
allowed_mentions: content.allowedMentions,
allowed_mentions: content.allowed_mentions,
components: content.components
}
}, content.file).then(() => this.update());
Expand Down
4 changes: 2 additions & 2 deletions lib/structures/UnknownInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class UnknownInteraction extends Interaction {
embeds: content.embeds,
tts: content.tts,
flags: content.flags,
allowed_mentions: content.allowedMentions,
allowed_mentions: content.allowed_mentions,
components: content.components
}
}, content.file).then(() => this.update());
Expand Down Expand Up @@ -379,7 +379,7 @@ class UnknownInteraction extends Interaction {
embeds: content.embeds,
tts: content.tts,
flags: content.flags,
allowed_mentions: content.allowedMentions,
allowed_mentions: content.allowed_mentions,
components: content.components
}
}, content.file).then(() => this.update());
Expand Down

0 comments on commit acc1d19

Please sign in to comment.