Skip to content

Commit

Permalink
fix(es6): d.js v13 filter (discordjs#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
daimond113 authored Oct 11, 2021
1 parent 8bdd32a commit 773b7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/additional-info/es6-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ var filter = function(m) {
return m.content === 'I agree' && !m.author.bot;
};

var collector = message.createMessageCollector(filter, { time: 15000 });
var collector = message.createMessageCollector({ filter, time: 15000 });
```

```js
Expand All @@ -171,7 +171,7 @@ const doubleAge = age => `Your age doubled is: ${age * 2}`;

// inside a message collector command
const filter = m => m.content === 'I agree' && !m.author.bot;
const collector = message.createMessageCollector(filter, { time: 15000 });
const collector = message.createMessageCollector({ filter, time: 15000 });
```

There are a few important things you should note here:
Expand Down

0 comments on commit 773b7b7

Please sign in to comment.