mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
fix no banner and no accent color condition
This commit is contained in:
parent
9e268fbd98
commit
e09a8ddec2
2 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,8 @@ module.exports = {
|
|||
|
||||
let u = await context.client.rest.fetchUser(args.user.id);
|
||||
|
||||
if(!u.banner && !u.accentColor) return editOrReply(context, createEmbed("warning", context, "User doesn't have a banner set."))
|
||||
|
||||
let userBanner = u.bannerUrl ? u.bannerUrl + "?size=4096" : undefined;
|
||||
if(!u.banner) userBanner = `https://lh3.googleusercontent.com/akBt-2Rz3efGuxAnOoSJbGuaqxZuRAI7ZUYKBgYZLT4vsk34qVWoAm3o6--RxupzZpayLSRsxO1LCwBECyBT_giQ3xhLMR03z7xngvm4m9ZgQ2Gya1i-3Q%3Dw1920-h677-bc0x0055aa-fcrop64%3D1%2C0000000000010001-rj-b36-c0x${u.accentColor.toString(16)}-s`;
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ module.exports = {
|
|||
|
||||
if(!u || !u.user) return editOrReply(context, createEmbed("warning", context, "No users found."))
|
||||
|
||||
if(!u.user.banner && !u.user.accentColor && !u.member?.banner) return editOrReply(context, createEmbed("warning", context, "User doesn't have a banner set."))
|
||||
|
||||
let userBanner = u.user.bannerUrl ? u.user.bannerUrl + "?size=4096" : undefined;
|
||||
if(!u.user.banner) userBanner = `https://lh3.googleusercontent.com/akBt-2Rz3efGuxAnOoSJbGuaqxZuRAI7ZUYKBgYZLT4vsk34qVWoAm3o6--RxupzZpayLSRsxO1LCwBECyBT_giQ3xhLMR03z7xngvm4m9ZgQ2Gya1i-3Q%3Dw1920-h677-bc0x0055aa-fcrop64%3D1%2C0000000000010001-rj-b36-c0x${u.user.accentColor.toString(16)}-s`;
|
||||
let pages = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue