Adding a banner to the /info command
This commit is contained in:
parent
6c470e36ff
commit
9bd591e102
0
app/cogs/actual_utils.py
Normal file → Executable file
0
app/cogs/actual_utils.py
Normal file → Executable file
0
app/cogs/markov.py
Normal file → Executable file
0
app/cogs/markov.py
Normal file → Executable file
0
app/cogs/poll.py
Normal file → Executable file
0
app/cogs/poll.py
Normal file → Executable file
2
app/cogs/server_utils.py
Normal file → Executable file
2
app/cogs/server_utils.py
Normal file → Executable file
@ -164,6 +164,8 @@ class ServerUtils(commands.Cog):
|
|||||||
name="Other servers using %s" % self.bot.user.name,
|
name="Other servers using %s" % self.bot.user.name,
|
||||||
value="\n".join("[%s](%s)" % (x.name, x.jump_url) for x in self.bot.guilds),
|
value="\n".join("[%s](%s)" % (x.name, x.jump_url) for x in self.bot.guilds),
|
||||||
)
|
)
|
||||||
|
if server.banner:
|
||||||
|
embed.set_image(url=f"{server.banner}")
|
||||||
embed.set_thumbnail(url=server.icon)
|
embed.set_thumbnail(url=server.icon)
|
||||||
|
|
||||||
await ctx.respond(embed=embed)
|
await ctx.respond(embed=embed)
|
||||||
|
0
app/cogs/stable_diffusion.py
Normal file → Executable file
0
app/cogs/stable_diffusion.py
Normal file → Executable file
0
app/cogs/star_citizen.py
Normal file → Executable file
0
app/cogs/star_citizen.py
Normal file → Executable file
0
app/cogs/user_functions.py
Normal file → Executable file
0
app/cogs/user_functions.py
Normal file → Executable file
0
dalebot-overview.py
Normal file → Executable file
0
dalebot-overview.py
Normal file → Executable file
0
helm/.helmignore
Normal file → Executable file
0
helm/.helmignore
Normal file → Executable file
0
helm/Chart.yaml
Normal file → Executable file
0
helm/Chart.yaml
Normal file → Executable file
0
helm/templates/_helpers.tpl
Normal file → Executable file
0
helm/templates/_helpers.tpl
Normal file → Executable file
0
helm/templates/hpa.yaml
Normal file → Executable file
0
helm/templates/hpa.yaml
Normal file → Executable file
0
helm/templates/ingress.yaml
Normal file → Executable file
0
helm/templates/ingress.yaml
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user