Skip to content

Commit 6ebc421

Browse files
committed
add server icon and banner
1 parent 17c4909 commit 6ebc421

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/commands/utility/server_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ async def server(self, ctx: ApplicationContext):
2929
features = '\n- `' + '`\n- `'.join(ctx.guild.features) + '`' if ctx.guild.features else 'None'
3030
embed = Embed()
3131
embed.title = ctx.guild.name
32-
embed.thumbnail = ctx.guild.icon
32+
embed.thumbnail = ctx.guild.icon.url if ctx.guild.icon else 'https://upload.wikimedia.org/wikipedia/commons/1/14/No_Image_Available.jpg'
33+
embed.image = ctx.guild.banner.url if ctx.guild.banner else ''
3334
embed.description = f"""
3435
**Owner**: <@{ctx.guild.owner_id}> (ID: `{ctx.guild.owner_id}`)
3536
**Created**: <t:{int(ctx.guild.created_at.timestamp())}:F>

0 commit comments

Comments
 (0)