utility.guildinfo: ignore 0 emotes/stickers
This commit is contained in:
parent
c2bf184cf4
commit
266bcaac42
1 changed files with 5 additions and 5 deletions
|
@ -1911,7 +1911,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
} integration`,
|
} integration`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
guild.emojis.length > 0 && {
|
||||||
name: `Emotes (${guild.emojis.length})`,
|
name: `Emotes (${guild.emojis.length})`,
|
||||||
value: `${
|
value: `${
|
||||||
guild.emojis.filter((e) => e.animated).length
|
guild.emojis.filter((e) => e.animated).length
|
||||||
|
@ -1922,7 +1922,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
} unavailable`,
|
} unavailable`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
guild.stickers.length > 0 && {
|
||||||
name: `Stickers (${guild.stickers.length})`,
|
name: `Stickers (${guild.stickers.length})`,
|
||||||
value: `${
|
value: `${
|
||||||
guild.stickers.filter((s) => s.format_type == 1).length
|
guild.stickers.filter((s) => s.format_type == 1).length
|
||||||
|
@ -2032,7 +2032,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
value: `<t:${Math.floor(snowflakeToTimestamp(guild.id) / 1000)}:R>`,
|
value: `<t:${Math.floor(snowflakeToTimestamp(guild.id) / 1000)}:R>`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
guild.emojis.length > 0 && {
|
||||||
name: `Emotes (${guild.emojis.length})`,
|
name: `Emotes (${guild.emojis.length})`,
|
||||||
value: `${
|
value: `${
|
||||||
guild.emojis.filter((e) => e.animated).length
|
guild.emojis.filter((e) => e.animated).length
|
||||||
|
@ -2043,7 +2043,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
} unavailable`,
|
} unavailable`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
guild.stickers.length > 0 && {
|
||||||
name: `Stickers (${guild.stickers.length})`,
|
name: `Stickers (${guild.stickers.length})`,
|
||||||
value: `${
|
value: `${
|
||||||
guild.stickers.filter((s) => s.format_type == 1).length
|
guild.stickers.filter((s) => s.format_type == 1).length
|
||||||
|
@ -2058,7 +2058,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
} unavailable`,
|
} unavailable`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
],
|
].filter((x) => !!x),
|
||||||
footer: {
|
footer: {
|
||||||
text: "Fetched from guild preview",
|
text: "Fetched from guild preview",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue