if a command is too long, showscheduled breaks. fixes this.

This commit is contained in:
brandons209 2021-02-13 00:44:55 -05:00
parent e8ac2875c3
commit a25e461750

View file

@ -95,7 +95,7 @@ class Task:
next_run_at = now + timedelta(seconds=self.next_call_delay)
embed = discord.Embed(color=color, timestamp=next_run_at)
embed.title = f"Now viewing {index} of {page_count} selected tasks"
embed.add_field(name="Command", value=f"[p]{self.content}")
embed.add_field(name="Command", value=f"[p]{self.content[:990]}")
embed.add_field(name="Channel", value=self.channel.mention)
embed.add_field(name="Creator", value=self.author.mention)
embed.add_field(name="Task ID", value=self.uid)