Compare commits

...

2 commits

Author SHA1 Message Date
cfd5f7b19c
fix(issues): reverted a previous incorrect change
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2023-08-19 17:00:02 -04:00
93f87fdf37
misc(issues): changed some code formatting 2023-08-19 16:59:06 -04:00

View file

@ -115,17 +115,14 @@ class Issues(commands.Cog):
words = value.split()
split_value = []
current_part = ""
for word in words:
if len(current_part) + len(word) + 1 <= 1024:
current_part += word + " "
else:
split_value.append(current_part.strip())
current_part = word + " "
if current_part:
split_value.append(current_part.strip())
for i, part in enumerate(split_value):
embed.add_field(name=title if i == 0 else "\u200b", value=part, inline=False)
else:
@ -221,7 +218,6 @@ class Issues(commands.Cog):
if self.response.value is not None:
embed.add_field(name=f"Response from {interaction.user.name}", value=self.response.value, inline=False)
for field in embed.fields:
if field.name != "\u200b":
field_names.append(field.name)
field_values.append(field.value)
await message.edit(embed=embed, view=None)