mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
implement guild stickers
This commit is contained in:
1 parent
ecf239d2a2
commit
60d82cf908
16 files changed
+1120
-86
No files matched your search
+3
-3
@@ -216,11 +216,11 @@ class Asset(AssetMixin):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _from_sticker(cls, state, sticker_id: int, sticker_hash: str) -> Asset:
|
||||
def _from_sticker_banner(cls, state, banner: int) -> Asset:
|
||||
return cls(
|
||||
state,
|
||||
url=f'{cls.BASE}/stickers/{sticker_id}/{sticker_hash}.png?size=1024',
|
||||
key=sticker_hash,
|
||||
url=f'{cls.BASE}/app-assets/710982414301790216/store/{banner}.png',
|
||||
key=str(banner),
|
||||
animated=False,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user