From 6fdf9a60f69800af00b676c8eb68b925bdf12f93 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 7 May 2022 12:04:22 +0200 Subject: [PATCH] Update example --- docs/source/faq/how-to-avoid-flood-waits.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/faq/how-to-avoid-flood-waits.rst b/docs/source/faq/how-to-avoid-flood-waits.rst index 0736e576..4d2994d1 100644 --- a/docs/source/faq/how-to-avoid-flood-waits.rst +++ b/docs/source/faq/how-to-avoid-flood-waits.rst @@ -16,7 +16,7 @@ The following shows how to catch the exception in your code and wait the require try: ... # Your code except FloodWait as e: - await asyncio.sleep(e.x) # Wait "x" seconds before continuing + await asyncio.sleep(e.value) # Wait "value" seconds before continuing ...