mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Add image links to server info embed (#150)
This commit is contained in:
parent
a13b0b6fda
commit
23c68d1d44
1 changed files with 26 additions and 0 deletions
|
@ -80,6 +80,32 @@ export async function getServerInfoEmbed(
|
|||
value: basicInformation.join("\n"),
|
||||
});
|
||||
|
||||
// IMAGE LINKS
|
||||
const iconUrl = `[URL](${(restGuild || guildPreview)!.iconURL})`;
|
||||
const bannerUrl = restGuild?.bannerURL ?? "Unavailable";
|
||||
const splashUrl =
|
||||
(restGuild || guildPreview)!.splashURL != null
|
||||
? `[URL](${(restGuild || guildPreview)!.splashURL?.replace("size=128", "size=2048")})`
|
||||
: "None";
|
||||
|
||||
embed.fields.push(
|
||||
{
|
||||
name: "Server icon",
|
||||
value: iconUrl,
|
||||
inline: true,
|
||||
},
|
||||
{
|
||||
name: "Invite splash",
|
||||
value: splashUrl,
|
||||
inline: true,
|
||||
},
|
||||
{
|
||||
name: "Server banner",
|
||||
value: bannerUrl,
|
||||
inline: true,
|
||||
},
|
||||
);
|
||||
|
||||
// MEMBER COUNTS
|
||||
const totalMembers =
|
||||
guildPreview?.approximateMemberCount ||
|
||||
|
|
Loading…
Add table
Reference in a new issue