Input correct reference content
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-05 13:36:54 +01:00
parent 64b2045d63
commit 318057a585
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -69,10 +69,10 @@ class Starboard(commands.Cog):
except discord.HTTPException:
pass
else:
text = message.content.splitlines()[0]
text = ref_message.content.splitlines()[0]
v = f"[{ref_message.author.mention}'s message: ]({ref_message.jump_url})"
l = 1024 - len(v)
t = textwrap.shorten(text, l, placeholder="...")
remaining = 1024 - len(v)
t = textwrap.shorten(text, remaining, placeholder="...")
v = f"[{ref_message.author.display_name}'s message: {t}]({ref_message.jump_url})"
embed.add_field(
name="Replying to",