From 92e127d05dd6ccfa4346bfc5ae7dc9adecc47804 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 4 Jan 2022 01:07:08 -0700 Subject: [PATCH] fix more non string value bugs --- events/guildCreate.js | 2 +- events/guildDelete.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/events/guildCreate.js b/events/guildCreate.js index 50c1b9a..77dda7e 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -18,7 +18,7 @@ module.exports = async (client, guild) => { .setAuthor({name: 'New Guild Added', iconURL: client.users.cache.get(guild.ownerId).avatarURL()}) .setTitle(guild.name) .setThumbnail(guild.iconURL({size: 2048})) - .addField('Owner', client.users.cache.get(guild.ownerId).tag, true) + .addField('Owner', `${client.users.cache.get(guild.ownerId).tag}`, true) .addField('Members', `${guild.members.cache.size}`, true) .addField('Position', `Server #${client.guilds.cache.size}`, true) .setColor('55ff7f') diff --git a/events/guildDelete.js b/events/guildDelete.js index 0a76a8a..00e761c 100644 --- a/events/guildDelete.js +++ b/events/guildDelete.js @@ -17,8 +17,8 @@ module.exports = async (client, guild) => { .setAuthor({name: 'Server Lost', iconURL: client.users.cache.get(guild.ownerId).avatarURL()}) .setTitle(guild.name) .setThumbnail(guild.iconURL({size: 2048})) - .addField('Owner', client.users.cache.get(guild.ownerId).tag, true) - .addField('Members', guild.members.cache.size, true) + .addField('Owner', `${client.users.cache.get(guild.ownerId).tag}`, true) + .addField('Members', `${guild.members.cache.size}`, true) .addField('Position', `Server #${client.guilds.cache.size + 1}`, true) .setColor('ff5d6a') .setFooter({text: "Natsuki"})