fix(seautils): added a bad solution to a stupid problem
This commit is contained in:
parent
ac5d4df36b
commit
861a03719b
1 changed files with 28 additions and 8 deletions
|
@ -211,6 +211,26 @@ class SeaUtils(commands.Cog):
|
||||||
content = []
|
content = []
|
||||||
for pre_tag in pre_tags:
|
for pre_tag in pre_tags:
|
||||||
text = convert_rfc_references(md(pre_tag), number)
|
text = convert_rfc_references(md(pre_tag), number)
|
||||||
|
if len(text) > 4096:
|
||||||
|
text1 = text[:4096]
|
||||||
|
text2 = text[4096:]
|
||||||
|
if await ctx.embed_requested():
|
||||||
|
embed = Embed(
|
||||||
|
title=f"RFC Document {number}",
|
||||||
|
description=text1,
|
||||||
|
color=await ctx.embed_color()
|
||||||
|
)
|
||||||
|
content.append(embed)
|
||||||
|
embed2 = Embed(
|
||||||
|
title=f"RFC Document {number}",
|
||||||
|
description=text2,
|
||||||
|
color=await ctx.embed_color()
|
||||||
|
)
|
||||||
|
content.append(embed2)
|
||||||
|
else:
|
||||||
|
content.append(text1)
|
||||||
|
content.append(text2)
|
||||||
|
else:
|
||||||
if await ctx.embed_requested():
|
if await ctx.embed_requested():
|
||||||
embed = Embed(
|
embed = Embed(
|
||||||
title=f"RFC Document {number}",
|
title=f"RFC Document {number}",
|
||||||
|
|
Loading…
Reference in a new issue