Skip to content

Commit

Permalink
feat(v12-changes): link collector optio changes in collector sections
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Dec 27, 2020
1 parent ec5915c commit 6a0537f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions guide/additional-info/changes-in-v12.md
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,10 @@ The `amount` parameter of these methods now allows a negative number which will

`dmChannel.createCollector()` has been removed in favor of `dmChannel.createMessageCollector()`.

:::tip
Note that the behavior of collector options has changed! See [this section](/additional-info/changes-in-v12.html#messagecollectoroptions-max-matches) for more details!
:::

#### DMChannel#fetch(Pinned)Message(s)

`dmChannel.fetchMessage(s)` has been transformed in the shape of a Manager. See the [TextChannel#fetch(Pinned)Message(s)](/additional-info/changes-inv-v12.md#channel) section for more information.
Expand Down Expand Up @@ -1708,6 +1712,12 @@ The `streamDispatcher.time` property has been renamed to `streamDispatcher.strea

Has been removed entirely, along with all other user account-only methods and properties.

#### Textchannel#awaitMessages

:::tip
The behavior of collector options has changed! See [this section](/additional-info/changes-in-v12.html#messagecollectoroptions-max-matches) for more details!
:::

#### TextChannel#\*\*\*position

See the [GuildChannel](/additional-info/changes-in-v12.md#guildchannel) section for changes to positions.
Expand All @@ -1732,6 +1742,10 @@ See [this section](/additional-info/changes-in-v12.md#messagecollector) for chan
+ channel.createMessageCollector(filterFunction, { max: 2, maxProcessed: 10, time: 15000 });
```

:::tip
Note that the behavior of collector options has changed! See [this section](/additional-info/changes-in-v12.html#messagecollectoroptions-max-matches) for more details!
:::

#### TextChannel#createWebhook

The second and third parameters in `textChannel.createWebhook()` have been changed/removed, leaving it with a total of two parameters. The `avatar` and `reason` parameters from v11 have been merged into an object as the second parameter.
Expand Down

0 comments on commit 6a0537f

Please sign in to comment.