mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +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.
|
||||
tags: List[:class:`str`]
|
||||
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):
|
||||
self._state = state
|
||||
@ -85,8 +83,6 @@ class Sticker(Hashable):
|
||||
except KeyError:
|
||||
self.tags = []
|
||||
|
||||
self.preview_image = data.get('preview_asset')
|
||||
|
||||
def __repr__(self):
|
||||
return f'<{self.__class__.__name__} id={self.id} name={self.name!r}>'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user