Skip to content

Commit 805d83f

Browse files
committed
Correct docs
Correct docs
1 parent c428987 commit 805d83f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/exts/commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Let's fill this out with some more common errors:
521521
await context.send(error.message)
522522
523523
elif isinstance(error, commands.MissingRequiredArgument):
524-
await context.send("You're missing an argument: " + error.args[0].name)
524+
await context.send("You're missing an argument: " + error.name)
525525
526526
elif isinstance(error, commands.CheckFailure): # we'll explain checks later, but lets include it for now.
527527
await context.send("Sorry, you cant run that command: " + error.args[0])
@@ -552,7 +552,7 @@ If you want to raise errors from your commands, subclass :class:`TwitchCommandEr
552552
await context.send(error.message)
553553
554554
elif isinstance(error, commands.MissingRequiredArgument):
555-
await context.send("You're missing an argument: " + error.args[0].name)
555+
await context.send("You're missing an argument: " + error.name)
556556
557557
elif isinstance(error, commands.CheckFailure): # we'll explain checks later, but lets include it for now.
558558
await context.send("Sorry, you cant run that command: " + error.args[0])

0 commit comments

Comments
 (0)