mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-14 05:45:22 +00:00
Fix warning message.
This commit is contained in:
parent
b60c71ab2e
commit
b88562c5c5
@ -36,14 +36,15 @@ from . import utils
|
|||||||
import logging
|
import logging
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
_warning_message = """
|
||||||
warnings.warn(
|
The next major version of discord.py (v0.10.0) will have major breaking changes
|
||||||
"""
|
|
||||||
The next version of discord.py(v0.10.0) will have major breaking changes
|
|
||||||
that will require updating/changing your code.
|
that will require updating/changing your code.
|
||||||
|
Please check the migrating guide to alleviate yourself of unexpected issues.
|
||||||
http://discordpy.readthedocs.org/en/latest/migrating.html
|
http://discordpy.readthedocs.org/en/latest/migrating.html
|
||||||
It is stongly recommended to make the switch as soon as possible.
|
It is strongly recommended to make the switch as soon as possible.
|
||||||
""", Warning)
|
"""
|
||||||
|
|
||||||
|
warnings.warn(_warning_message, UserWarning)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from logging import NullHandler
|
from logging import NullHandler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user