mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Add deprecation warning to create_guild functions
This commit is contained in:
@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Optional, TYPE_CHECKING, List
|
||||
from .utils import parse_time, _bytes_to_base64_data, MISSING
|
||||
from .utils import parse_time, _bytes_to_base64_data, MISSING, deprecated
|
||||
from .guild import Guild
|
||||
|
||||
# fmt: off
|
||||
@ -164,6 +164,7 @@ class Template:
|
||||
f' creator={self.creator!r} source_guild={self.source_guild!r} is_dirty={self.is_dirty}>'
|
||||
)
|
||||
|
||||
@deprecated()
|
||||
async def create_guild(self, name: str, icon: bytes = MISSING) -> Guild:
|
||||
"""|coro|
|
||||
|
||||
@ -178,6 +179,9 @@ class Template:
|
||||
This function will now raise :exc:`ValueError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
.. deprecated:: 2.6
|
||||
This function is deprecated and will be removed in a future version.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
name: :class:`str`
|
||||
|
Reference in New Issue
Block a user