Input correct reference content
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
64b2045d63
commit
318057a585
1 changed files with 3 additions and 3 deletions
|
@ -69,10 +69,10 @@ class Starboard(commands.Cog):
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
text = message.content.splitlines()[0]
|
text = ref_message.content.splitlines()[0]
|
||||||
v = f"[{ref_message.author.mention}'s message: ]({ref_message.jump_url})"
|
v = f"[{ref_message.author.mention}'s message: ]({ref_message.jump_url})"
|
||||||
l = 1024 - len(v)
|
remaining = 1024 - len(v)
|
||||||
t = textwrap.shorten(text, l, placeholder="...")
|
t = textwrap.shorten(text, remaining, placeholder="...")
|
||||||
v = f"[{ref_message.author.display_name}'s message: {t}]({ref_message.jump_url})"
|
v = f"[{ref_message.author.display_name}'s message: {t}]({ref_message.jump_url})"
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Replying to",
|
name="Replying to",
|
||||||
|
|
Loading…
Reference in a new issue