mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix Picarto channel avatar in Streams cog (#6230)
This commit is contained in:
parent
100de11ce6
commit
483682dfb5
@ -487,9 +487,7 @@ class PicartoStream(Stream):
|
|||||||
raise APIError(r.status, data)
|
raise APIError(r.status, data)
|
||||||
|
|
||||||
def make_embed(self, data):
|
def make_embed(self, data):
|
||||||
avatar = rnd(
|
avatar = rnd(data["avatar"])
|
||||||
"https://picarto.tv/user_data/usrimg/{}/dsdefault.jpg".format(data["name"].lower())
|
|
||||||
)
|
|
||||||
url = "https://picarto.tv/" + data["name"]
|
url = "https://picarto.tv/" + data["name"]
|
||||||
thumbnail = data["thumbnails"]["web"]
|
thumbnail = data["thumbnails"]["web"]
|
||||||
embed = discord.Embed(title=data["title"], url=url, color=0x4C90F3)
|
embed = discord.Embed(title=data["title"], url=url, color=0x4C90F3)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user