In readthedocs Guild.fetch_ban() and Guild.bans() both mention a BanEntry. However, there is no further information in the documentation about this class since it does not link anywhere.
This coroutine returns a list of BanEntry objects, which is a namedtuple with a user field to denote the User that got banned along with a reason field specifying why the user was banned that could be set to None.
The (not too uncommon) misunderstanding here is that a banentry, being a namedtuple is part of this library- it's actually part of collections.
It seems wise to me to link to that documentation from within the dpy documentation.
This coroutine returns a list of BanEntry objects, which is a namedtuple with a user field to denote the User that got banned along with a reason field specifying why the user was banned that could be set to None.
- from the docs
Why put this twice in the two functions though? Wouldn't it be easier to maintain to just make one explanation for BanEntry?
Most helpful comment
This coroutine returns a list of BanEntry objects, which is a namedtuple with a user field to denote the User that got banned along with a reason field specifying why the user was banned that could be set to None.