From cabc55181645ce36b4ccb7bdac836cb2bb194cad Mon Sep 17 00:00:00 2001 From: "Captain D. Ezio" Date: Fri, 3 Jan 2025 20:19:34 +0530 Subject: [PATCH] Update flood.py --- Powers/plugins/flood.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Powers/plugins/flood.py b/Powers/plugins/flood.py index 10ff3c94..71e9a2c7 100644 --- a/Powers/plugins/flood.py +++ b/Powers/plugins/flood.py @@ -346,7 +346,7 @@ async def reverse_callbacks(c: Gojo, q: CallbackQuery): if not q.from_user: return q.answer("Looks like you are not an user 👀") user = await q.message.chat.get_member(q.from_user.id) - if not user.privileges and q.from_user.id not in SUPPORT_STAFF: + if (user and not user.privileges) and (q.from_user.id not in SUPPORT_STAFF): return await q.answer( "You don't have enough permission to do this!\nStay in your limits!", show_alert=True,