mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 09:19:48 +00:00
Warn that async is looming
This commit is contained in:
parent
4071757c40
commit
cc37672cbf
@ -34,6 +34,16 @@ from .object import Object
|
|||||||
from . import utils
|
from . import utils
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
|
||||||
|
warnings.warn(
|
||||||
|
"""
|
||||||
|
The next version of discord.py(v0.10.0) will have major breaking changes
|
||||||
|
that will require updating/changing your code.
|
||||||
|
http://discordpy.readthedocs.org/en/latest/migrating.html
|
||||||
|
It is stongly recommended to make the switch as soon as possible.
|
||||||
|
""", Warning)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from logging import NullHandler
|
from logging import NullHandler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user