From 87d82aaf2b6d3d9d7895363a0e8b82d249655023 Mon Sep 17 00:00:00 2001 From: Aaron Kable Date: Sat, 25 May 2024 14:59:44 +0800 Subject: [PATCH] add DeprecationWarning --- aadiscordbot/utils/auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aadiscordbot/utils/auth.py b/aadiscordbot/utils/auth.py index feeaa3e..0f883ef 100644 --- a/aadiscordbot/utils/auth.py +++ b/aadiscordbot/utils/auth.py @@ -10,6 +10,7 @@ """ import logging +import warnings from discord import Guild, User @@ -129,6 +130,11 @@ def is_guild_managed(guild: Guild): def user_is_authenticated(user: User, guild: Guild): + warnings.warn( + "user_is_authenticated is deprecated use is_user_authenticated instead", + DeprecationWarning, + stacklevel=2 + ) logger.warning("user_is_authenticated is deprecated use is_user_authenticated instead") return is_user_authenticated(user, guild)