mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-30 23:30:02 +00:00
Remove Sticker.preview_image
This commit is contained in:
parent
5dec62f4c0
commit
b610998491
@ -66,10 +66,8 @@ class Sticker(Hashable):
|
|||||||
The sticker's image.
|
The sticker's image.
|
||||||
tags: List[:class:`str`]
|
tags: List[:class:`str`]
|
||||||
A list of tags for the sticker.
|
A list of tags for the sticker.
|
||||||
preview_image: Optional[:class:`str`]
|
|
||||||
The sticker's preview asset hash.
|
|
||||||
"""
|
"""
|
||||||
__slots__ = ('_state', 'id', 'name', 'description', 'pack_id', 'format', 'image', 'tags', 'preview_image')
|
__slots__ = ('_state', 'id', 'name', 'description', 'pack_id', 'format', 'image', 'tags')
|
||||||
|
|
||||||
def __init__(self, *, state, data):
|
def __init__(self, *, state, data):
|
||||||
self._state = state
|
self._state = state
|
||||||
@ -85,8 +83,6 @@ class Sticker(Hashable):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
self.tags = []
|
self.tags = []
|
||||||
|
|
||||||
self.preview_image = data.get('preview_asset')
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f'<{self.__class__.__name__} id={self.id} name={self.name!r}>'
|
return f'<{self.__class__.__name__} id={self.id} name={self.name!r}>'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user