Skip to content

Commit 0b43e5f

Browse files
authored
force deprecation status
1 parent 15ace91 commit 0b43e5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

discord_slash/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import logging
33
import re
44
import typing
5+
import warnings
56
from contextlib import suppress
67
from inspect import getdoc, iscoroutinefunction
78

@@ -1395,6 +1396,13 @@ async def on_socket_response(self, msg):
13951396
to_use = msg["d"]
13961397
interaction_type = to_use["type"]
13971398

1399+
# it's time to start using the new module guys,
1400+
# sorry.
1401+
warnings.warn(
1402+
message='This pip module is now deprecated as of version 3.0.1a! Please use the new module "discord-py-interactions" to gain access to 3.0.2 and future versions.',
1403+
category=DeprecationWarning,
1404+
)
1405+
13981406
# dis_snek variance seq
13991407

14001408
if interaction_type in (1, 2):

0 commit comments

Comments
 (0)