From d124daef33f8da3ebdce62f99673cc4d56a5fbec Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 6 Mar 2019 02:37:02 -0500 Subject: [PATCH] Fix non-working example in commands documentation. --- docs/ext/commands/commands.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst index 6f5b3d00f..dbf618d63 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):