Modify TwitchGameNotificationEmbed tag field to 5 tags and remove inline
This commit is contained in:
parent
7181bd134a
commit
82c7508517
|
|
@ -21,7 +21,7 @@ class TwitchGameNotificationEmbed(Embed):
|
|||
self.add_field(name="Game", value=f"{stream_data["game_name"]}", inline=True)
|
||||
self.add_field(name="Viewers", value=f"{stream_data["viewer_count"]}", inline=True)
|
||||
tags = stream_data["tags"]
|
||||
if len(tags) > 3:
|
||||
tags = tags[:3]
|
||||
if len(tags) > 5:
|
||||
tags = tags[:5]
|
||||
tags.append('...')
|
||||
self.add_field(name="Tags", value=f"{", ".join(tags)}")
|
||||
self.add_field(name="Tags", value=f"{", ".join(tags)}", inline=False)
|
||||
Loading…
Reference in a new issue