Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken
GuildChannel
collector functionality (#1446)
Currently, `GuildChannel::await_reply` and other collector methods try to await from a "guild" that matches the `GuildChannel`'s ID. This would have functioned normally had default channels not been discontinued (which shared the same ID as the guild), but since they were, the behaviour only works in very old guilds. Furthermore, logic dictates that, since the collector methods are on a `GuildChannel`, they should work by awaiting on the specific channel, but they do not. As such, the collectors are broken. This commit fixes them to work based on the guild channel they're called on instead. This commit also fixes an example for `Channel::guild()` where `GuildChannel::name` should be the `GuildChannel` name, not the guild name as the example suggests.
- Loading branch information
Kot
committed
Jul 26, 2021
1 parent
3117f1d
commit 413e3ef
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters