diff --git a/commands/interaction/slash/info/avatar.js b/commands/interaction/slash/info/avatar.js index fc67758..292ee93 100644 --- a/commands/interaction/slash/info/avatar.js +++ b/commands/interaction/slash/info/avatar.js @@ -1,6 +1,7 @@ const { createEmbed } = require('#utils/embed'); const { acknowledge } = require('#utils/interactions'); const { editOrReply } = require('#utils/message'); +const { getUserAvatar } = require('#utils/users'); const { ApplicationCommandOptionTypes } = require("detritus-client/lib/constants"); @@ -35,13 +36,13 @@ module.exports = { if(!args.user) return editOrReply(context, createEmbed("default", context, { image: { - url: context.user.avatarUrl + '?size=4096' + url: getUserAvatar(context.user) } })) return editOrReply(context, createEmbed("default", context, { image: { - url: args.user.avatarUrl + '?size=4096' + url: getUserAvatar(args.user) } })) }, diff --git a/commands/interaction/slash/info/user.js b/commands/interaction/slash/info/user.js index 0957afe..fba4e67 100644 --- a/commands/interaction/slash/info/user.js +++ b/commands/interaction/slash/info/user.js @@ -4,7 +4,7 @@ const { createEmbed } = require('#utils/embed'); const { acknowledge } = require('#utils/interactions'); const { smallIconPill, highlight, smallPill, icon, timestamp } = require('#utils/markdown'); const { editOrReply } = require('#utils/message'); -const { renderBadges } = require('#utils/users'); +const { renderBadges, getUserAvatar } = require('#utils/users'); const { ApplicationCommandOptionTypes, UserFlags } = require("detritus-client/lib/constants"); @@ -65,10 +65,12 @@ module.exports = { if (m && m.nick !== null) usernameDisplay += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}` if (u.clan && u.clan.tag !== null) usernameDisplay += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` + if(u.hasFlag(1<<23)) usernameDisplay += `\n-# Provisional Account` + let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`, thumbnail: { - url: u.avatarUrl + `?size=4096` + url: getUserAvatar(u) }, fields: [{ name: `${icon("calendar")} Dates`, diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index d1edaa3..a455da4 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -44,6 +44,8 @@ module.exports = { if (m && m.nick !== null) usernameDisplay += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}` if (u.clan && u.clan.tag !== null) usernameDisplay += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` + if(u.hasFlag(1<<23)) usernameDisplay += `\n-# Provisional Account` + let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`, thumbnail: { diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 3a944e7..e48a669 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -55,6 +55,8 @@ module.exports = { if(m && m.nick !== null) usernameDisplay += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}` if (u.clan && u.clan.tag !== null) usernameDisplay += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` + if(u.hasFlag(1<<23)) usernameDisplay += `\n-# Provisional Account` + let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`, thumbnail: {