Skip to content

Instantly share code, notes, and snippets.

@cyrus01337
Created December 23, 2020 15:51
Show Gist options
  • Save cyrus01337/b235b7b64a0aaf4ee16f73015513df38 to your computer and use it in GitHub Desktop.
Save cyrus01337/b235b7b64a0aaf4ee16f73015513df38 to your computer and use it in GitHub Desktop.
Jishaku eval code used to generate the image example for ?tag inline
kwargs = {"title": "title", "description": "description"}
embeds = (discord.Embed(**kwargs), discord.Embed(**kwargs))
values = ("not inline", "inline")
for i, inline in enumerate((False, True)):
embed = embeds[i]
for n in range(1, 7):
embed.add_field(name=f"field #{n}", value=values[i], inline=inline)
_=await _ctx.send(embed=embed) # replace "_ctx" according to your bot's jishaku underscore settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment