Skip to content

Commit

Permalink
add DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
pvyParts committed May 25, 2024
1 parent 2f8d1fe commit 87d82aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aadiscordbot/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""

import logging
import warnings

from discord import Guild, User

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 87d82aa

Please sign in to comment.