aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-03-06 02:37:02 -0500
committerRapptz <[email protected]>2019-03-06 02:37:02 -0500
commitd124daef33f8da3ebdce62f99673cc4d56a5fbec (patch)
treed2899d897f3fe767611e51b16696bacce54c6809 /docs
parentDon't reconnect during 4014/4015 in voice websocket. (diff)
downloaddiscord.py-d124daef33f8da3ebdce62f99673cc4d56a5fbec.tar.xz
discord.py-d124daef33f8da3ebdce62f99673cc4d56a5fbec.zip
Fix non-working example in commands documentation.
Diffstat (limited to 'docs')
-rw-r--r--docs/ext/commands/commands.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst
index 6f5b3d00..dbf618d6 100644
--- a/docs/ext/commands/commands.rst
+++ b/docs/ext/commands/commands.rst
@@ -422,7 +422,7 @@ By providing the converter it allows us to use them as building blocks for anoth
class MemberRoles(commands.MemberConverter):
async def convert(self, ctx, argument):
member = await super().convert(ctx, argument)
- return member.roles
+ return [role.name for role in member.roles[1:]] # Remove everyone role!
@bot.command()
async def roles(ctx, *, member: MemberRoles):