Skip to content

Commit

Permalink
merge correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Sep 6, 2021
1 parent e14b25b commit 1322291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,12 @@ class Command {
.setStyle('SUCCESS')
);
/** @type {Message} */
this.response = await this.source.getChannel().channel.send({content: text, components: [buttons]});
this.response = await this.source.getChannel().send({content: text, components: [buttons]});
try {
const component = await this.response.awaitMessageComponent({
max: 1, time: options.time, errors: ['time'],
filter: async (interaction) => {
if (interaction.user.id !== this.message.author.id) {
if (interaction.user.id !== this.source.getUser().id) {
await interaction.reply({
ephemeral: true,
content: 'Only the message author can do this.'
Expand Down

0 comments on commit 1322291

Please sign in to comment.