From 11aaed9867f8442d554107af78a670fc3448c884 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sun, 4 Sep 2022 00:54:13 +0200 Subject: [PATCH] oops wrong intent --- commands/message/info/guild.js | 4 +++- labscore/client.js | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/message/info/guild.js b/commands/message/info/guild.js index fd3d996..265a3b9 100644 --- a/commands/message/info/guild.js +++ b/commands/message/info/guild.js @@ -29,13 +29,15 @@ module.exports = { const g = context.guild // Guild Card let guildCard = createEmbed("default", context, { - description: `${icon("house")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}\n\n<:lc_guild_owner:674652779406426122> **Server Owner: **<@${g.owner.id}>`, + description: `${icon("house")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}`, thumbnail: { url: g.iconUrl + `?size=4096` }, fields: [] }) + if(g.owner) guildCard.description += `\n\n<:lc_guild_owner:674652779406426122> **Server Owner: **<@${g.owner.id}>` + // TODO: make a proper utility function to pad these codeblocks properly // Channel Container diff --git a/labscore/client.js b/labscore/client.js index d9b1f51..93d6faf 100644 --- a/labscore/client.js +++ b/labscore/client.js @@ -12,8 +12,7 @@ const cluster = new ClusterClient("", { intents: [ GatewayIntents.GUILDS, GatewayIntents.GUILD_MESSAGES, - GatewayIntents.GUILD_EMOJIS, - GatewayIntents.GUILD_MEMBERS + GatewayIntents.GUILD_EMOJIS ], presence: { activity: {