mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
This commit is contained in:
@@ -28,7 +28,6 @@ from typing import Any, Dict, Optional, TYPE_CHECKING, Type, TypeVar, Union
|
||||
import re
|
||||
|
||||
from .asset import Asset, AssetMixin
|
||||
from .errors import InvalidArgument
|
||||
from . import utils
|
||||
|
||||
# fmt: off
|
||||
@@ -230,6 +229,6 @@ class PartialEmoji(_EmojiTag, AssetMixin):
|
||||
|
||||
async def read(self) -> bytes:
|
||||
if self.is_unicode_emoji():
|
||||
raise InvalidArgument('PartialEmoji is not a custom emoji')
|
||||
raise ValueError('PartialEmoji is not a custom emoji')
|
||||
|
||||
return await super().read()
|
||||
|
Reference in New Issue
Block a user