mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix warning message.
This commit is contained in:
parent
b60c71ab2e
commit
b88562c5c5
@ -36,14 +36,15 @@ from . import utils
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
|
||||
warnings.warn(
|
||||
"""
|
||||
The next version of discord.py(v0.10.0) will have major breaking changes
|
||||
_warning_message = """
|
||||
The next major version of discord.py (v0.10.0) will have major breaking changes
|
||||
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
|
||||
It is stongly recommended to make the switch as soon as possible.
|
||||
""", Warning)
|
||||
It is strongly recommended to make the switch as soon as possible.
|
||||
"""
|
||||
|
||||
warnings.warn(_warning_message, UserWarning)
|
||||
|
||||
try:
|
||||
from logging import NullHandler
|
||||
|
Loading…
x
Reference in New Issue
Block a user