def _make_list_embed(self, streamers, subscriber):
streams = '\n'.join(f'[{username}]({self.stream_url(username)})' for (username,) in streamers)
if len(streams) > 1024:
log.warning('Embed value length is over 1024!')
return discord.Embed(
description='Please complain about embed pagination in https://discord.gg/xrzJhqq',
color=discord.Color.red()
)
embed = discord.Embed(description=streams, color=discord.Color.blue())
embed.set_author(name=f"{self.service_name.capitalize()} subscriptions for {subscriber}")
return embed
评论列表
文章目录