diff --git a/commands/anime/anime.js b/commands/anime/anime.js index e78a490..18bb5be 100644 --- a/commands/anime/anime.js +++ b/commands/anime/anime.js @@ -158,7 +158,7 @@ module.exports = { .addField('Other', `**Genre(s):** ${foptions.genres}\n**Tags:** ${foptions.tags}\n**Characters:** ${foptions.characters}\n**Stream this at:** ${foptions.streamAt}`) .setColor("c375f0") .setImage(options.thumbnail) - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); try { am = await dmch.send({embeds: [amEmbed]}); @@ -177,7 +177,7 @@ module.exports = { client.misc.cache.animeID.set(options.id, options.name); } else {amEmbed.addField("ID", options.id);} - amEmbed.setAuthor(!queue ? "Anime Added" : "Anime Submitted", message.author.avatarURL()); + amEmbed.setAuthor({name: !queue ? "Anime Added" : "Anime Submitted", iconURL: message.author.avatarURL()}); client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({embeds: [amEmbed]})); if (!queue) {options.queued = false;} await new AniData(options).save(); diff --git a/commands/anime/char.js b/commands/anime/char.js index f75ff8d..be61ac4 100644 --- a/commands/anime/char.js +++ b/commands/anime/char.js @@ -151,7 +151,7 @@ module.exports = { .addField('Other', `**Anime**: ${forceAni ? options.anime : `${aniData.name} | ${aniData.japname} | \`${aniData.id}\``}\n\n**Gender**: ${options.gender}\n`) .setColor("c375f0") .setImage(options.thumbnail) - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); try { am = await dmch.send({embeds: [amEmbed]}); @@ -169,7 +169,7 @@ module.exports = { client.misc.cache.charsID.set(options.id, options.name); } else {amEmbed.addField("ID", options.id);} - amEmbed.setAuthor(!queue ? "Character Added" : "Character Submitted", message.author.avatarURL()); + amEmbed.setAuthor({name: !queue ? "Character Added" : "Character Submitted", iconURL: message.author.avatarURL()}); if (!queue) {options.queued = false;} await new Char(options).save(); if (aniData) { @@ -292,10 +292,10 @@ module.exports = { let n = mention ? message.guild ? message.mentions.members.first().displayName : message.mentions.users.first().username : message.guild ? message.member.displayName : message.author.username; return message.channel.send({embeds: [ new Discord.MessageEmbed() - .setAuthor(`${n}${n.endsWith('s') ? '' : "'s"} Favorited Characters`, mention ? mention.avatarURL() : message.author.avatarURL()) + .setAuthor({name: `${n}${n.endsWith('s') ? '' : "'s"} Favorited Characters`, iconURL: mention ? mention.avatarURL() : message.author.avatarURL()}) .setDescription(`**${chars.length} character${chars.length === 1 ? '': 's'} favorited**\n\n${chars.join(", ")}`) .setColor('c375f0') - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } @@ -377,14 +377,14 @@ module.exports = { client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ embeds: [ new Discord.MessageEmbed() - .setAuthor(message.author.username, message.author.avatarURL()) + .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`New Image ${queue ? "Submitted" : "Added"}`) .setDescription(`For **${ch.name}** | \`${ch.id}\` from ${client.misc.cache.animeID.get(ch.anime)}`) .setThumbnail(ch.thumbnail) .setImage(img) .setColor('c375f0') .setTimestamp() - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) ], content: queue ? '<@330547934951112705>' : undefined }).catch(() => {})).catch(() => {}); return message.channel.send(`Character image ${queue ? "submitted" : "added"} to **${ch.name}**.`); @@ -397,14 +397,14 @@ module.exports = { client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ embeds: [ new Discord.MessageEmbed() - .setAuthor(message.author.username, message.author.avatarURL()) + .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`New Images ${queue ? "Submitted" : "Added"}`) .setDescription(`For **${ch.name}** | \`${ch.id}\` from ${client.misc.cache.animeID.get(ch.anime)}`) .addField("Images", images.map(img => `${img}\n`).join("")) .setThumbnail(ch.thumbnail) .setColor('c375f0') .setTimestamp() - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) ], content: queue ? '<@330547934951112705>' : undefined }).catch(() => {})).catch(() => {}); return message.channel.send(`Character images (${images.length}) ${queue ? "submitted" : "added"} to **${ch.name}**.`); @@ -453,7 +453,7 @@ module.exports = { .addField("Loved by", `**${ch.loved}** Natsuki user${ch.loved === 1 ? '' : 's'}!\n\`${prefix}char love ${ch.name}\``) .setColor("c375f0") .setImage(ch.thumbnail) - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() )); let pag = new Pagination(message.channel, pages, message, client, true); @@ -464,7 +464,7 @@ module.exports = { .setTitle(`${anime.name}: Characters`) .setThumbnail(anime.thumbnail) .setDescription(anime.characters.map(ch => client.misc.cache.charsID.get(ch)).join(", ")) - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } @@ -514,14 +514,14 @@ module.exports = { client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ embeds: [ new Discord.MessageEmbed() - .setAuthor(message.author.username, message.author.avatarURL()) + .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`New Character Nickname ${queue ? "Submitted" : "Added"}`) .setDescription(`For **${ch.name}** | \`${ch.id}\` from ${client.misc.cache.animeID.get(ch.anime)}`) .addField("Name", nn) .setThumbnail(ch.thumbnail) .setColor('c375f0') .setTimestamp() - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) ], content: queue ? '<@330547934951112705>' : undefined }).catch(() => {})).catch(() => {}); return message.channel.send(`Character nickname ${queue ? "submitted" : "added"}.`); diff --git a/commands/anime/charimage.js b/commands/anime/charimage.js index a0ce21c..0154b6e 100644 --- a/commands/anime/charimage.js +++ b/commands/anime/charimage.js @@ -97,14 +97,14 @@ module.exports = { client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ embeds: [ new Discord.MessageEmbed() - .setAuthor(message.author.username, message.author.avatarURL()) + .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`New Image ${queue ? "Submitted" : "Added"}`) .setDescription(`For **${ch.name}** | \`${ch.id}\` from ${client.misc.cache.animeID.get(ch.anime)}`) .setThumbnail(ch.thumbnail) .setImage(img) .setColor('c375f0') .setTimestamp() - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) ], content: queue ? '<@330547934951112705>' : undefined }).catch(() => {})).catch(() => {}); return message.channel.send(`Character image ${queue ? "submitted" : "added"} to **${ch.name}**.`); @@ -117,14 +117,14 @@ module.exports = { client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ embeds: [ new Discord.MessageEmbed() - .setAuthor(message.author.username, message.author.avatarURL()) + .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`New Images ${queue ? "Submitted" : "Added"}`) .setDescription(`For **${ch.name}** | \`${ch.id}\` from ${client.misc.cache.animeID.get(ch.anime)}`) .addField("Images", images.map(img => `${img}\n`).join("")) .setThumbnail(ch.thumbnail) .setColor('c375f0') .setTimestamp() - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) ], content: queue ? '<@330547934951112705>' : undefined }).catch(() => {})).catch(() => {}); return message.channel.send(`Character images (${images.length}) ${queue ? "submitted" : "added"} to **${ch.name}**.`); diff --git a/commands/anime/charlb.js b/commands/anime/charlb.js index d33d080..b47af35 100644 --- a/commands/anime/charlb.js +++ b/commands/anime/charlb.js @@ -22,7 +22,7 @@ module.exports = { .map((c, i) => `${i+1}. **${client.misc.cache.charsLove.get(c)} vote${client.misc.cache.charsLove.get(c) === 1 ? '' : 's'}** -> ${client.misc.cache.charsID.get(c)}`) .join('\n') ).setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/anime/lovechar.js b/commands/anime/lovechar.js index 7fbfd56..64a51a5 100644 --- a/commands/anime/lovechar.js +++ b/commands/anime/lovechar.js @@ -29,10 +29,10 @@ module.exports = { let n = mention ? message.guild ? message.mentions.members.first().displayName : message.mentions.users.first().username : message.guild ? message.member.displayName : message.author.username; return message.channel.send({embeds: [ new Discord.MessageEmbed() - .setAuthor(`${n}${n.endsWith('s') ? '' : "'s"} Favorited Characters`, mention ? mention.avatarURL() : message.author.avatarURL()) + .setAuthor({name: `${n}${n.endsWith('s') ? '' : "'s"} Favorited Characters`, iconURL: mention ? mention.avatarURL() : message.author.avatarURL()}) .setDescription(`**${chars.length} character${chars.length === 1 ? '': 's'} favorited**\n\n${chars.join(", ")}`) .setColor('c375f0') - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } else { diff --git a/commands/anime/watched.js b/commands/anime/watched.js index b67c566..a940cd8 100644 --- a/commands/anime/watched.js +++ b/commands/anime/watched.js @@ -32,7 +32,7 @@ module.exports = { s += `**${x + (i * 10) + 1}.** ${client.misc.cache.animeID.get(af.watched[(i * 10) + x])}\n`; } pages.push(new Discord.MessageEmbed() - .setAuthor(message.guild ? message.guild.members.cache.get(user.id).displayName : user.username, message.author.displayAvatarURL({dynamic: true})) + .setAuthor({name: message.guild ? message.guild.members.cache.get(user.id).displayName : user.username, iconURL: message.author.displayAvatarURL({dynamic: true})}) .setTitle("Finished Anime List") .setDescription(s) .setColor('c375f0') @@ -42,7 +42,7 @@ module.exports = { if (pages.length > 1) { let pag = new Pagination(message.channel, pages, message, client, true); return await pag.start({user: message.author.id, time: 60000}); - } else {return message.channel.send({embeds: [pages[0].setFooter("Natsuki")]});} + } else {return message.channel.send({embeds: [pages[0].setFooter({text: "Natsuki"})]});} } if (!args[0]) { diff --git a/commands/dev/admin.js b/commands/dev/admin.js index d39f7ea..957d74e 100644 --- a/commands/dev/admin.js +++ b/commands/dev/admin.js @@ -28,13 +28,13 @@ module.exports = { else {tu.admin = false; tu.developer = false;} tu.save(); const logemb = (act) => new Discord.MessageEmbed() - .setAuthor(`Admin ${act}`, message.author.avatarURL()) + .setAuthor({name: `Admin ${act}`, iconURL: message.author.avatarURL()}) .setDescription("A user's Admin status was updated.") .setThumbnail(person.avatarURL({size: 1024})) .addField("Name", person.username, true) .addField("Developer", message.author.username, true) .setColor("e8da3a") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp(); client.guilds.cache.get('762707532417335296').channels.cache.get('762732961753595915').send({embeds: [logemb(['a', 'add'].includes(args[0]) ? 'Added' : 'Removed')]}); return message.reply(`${message.guild.members.cache.get(person.id).displayName} is no${['a', 'add'].includes(args[0]) ? 'w' : ' longer'} an admin!`); diff --git a/commands/dev/developer.js b/commands/dev/developer.js index 1e7b1cd..4d287d1 100644 --- a/commands/dev/developer.js +++ b/commands/dev/developer.js @@ -30,13 +30,13 @@ module.exports = { else {tu.developer = false;} tu.save(); const logemb = (act) => new Discord.MessageEmbed() - .setAuthor(`Developer ${act}`, message.author.avatarURL()) + .setAuthor({name: `Developer ${act}`, iconURL: message.author.avatarURL()}) .setDescription("A user's Developer status was updated.") .setThumbnail(person.avatarURL({size: 1024})) .addField("Name", person.username, true) .addField("Developer", message.author.username, true) .setColor("e8da3a") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp(); client.guilds.cache.get('762707532417335296').channels.cache.get('762732961753595915').send({embeds: [logemb(['a', 'add'].includes(args[0]) ? 'Added' : 'Removed')]}); return message.reply(`${message.guild.members.cache.get(person.id).displayName} is no${['a', 'add'].includes(args[0]) ? 'w' : ' longer'} a developer!`); diff --git a/commands/dev/eval.js b/commands/dev/eval.js index ae2dcb4..3960119 100644 --- a/commands/dev/eval.js +++ b/commands/dev/eval.js @@ -38,7 +38,7 @@ module.exports = { .setTitle('Client Evaluation') .setDescription(`\`\`\`js\n${output}\n\`\`\``) .setColor('c375f0') - .setFooter(`Natsuki | Evaluated in ${new Date().getTime() - timer}ms`, client.user.avatarURL()) + .setFooter({text: `Natsuki | Evaluated in ${new Date().getTime() - timer}ms`, iconURL: client.user.avatarURL()}) .setTimestamp()]}); }).catch(error => {return message.channel.send(`Error: \`${error}\`.`);}); } catch (error) { diff --git a/commands/dev/execute.js b/commands/dev/execute.js index 749d925..94897ab 100644 --- a/commands/dev/execute.js +++ b/commands/dev/execute.js @@ -22,7 +22,7 @@ module.exports = { .setTitle("Error") .setDescription(`\`\`\`${error}\`\`\``) .setColor("ff446a") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} ); } @@ -31,7 +31,7 @@ module.exports = { .setTitle("Execution Successful") .setDescription(`\`\`\`${stdout}\`\`\``) .setColor("c375f0") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} ); }); diff --git a/commands/dev/staff.js b/commands/dev/staff.js index d85a58c..088d63e 100644 --- a/commands/dev/staff.js +++ b/commands/dev/staff.js @@ -28,13 +28,13 @@ module.exports = { else {tu.staff = false; tu.admin = false; tu.developer = false;} tu.save(); const logemb = (act) => new Discord.MessageEmbed() - .setAuthor(`Staff ${act}`, message.author.avatarURL()) + .setAuthor({name: `Staff ${act}`, iconURL: message.author.avatarURL()}) .setDescription("A user's Staff status was updated.") .setThumbnail(person.avatarURL({size: 1024})) .addField("Name", person.username, true) .addField("Developer", message.author.username, true) .setColor("e8da3a") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp(); client.guilds.cache.get('762707532417335296').channels.cache.get('762732961753595915').send(logemb(['a', 'add'].includes(args[0]) ? 'Added' : 'Removed')); return message.reply(`${message.guild.members.cache.get(person.id).displayName} is no${['a', 'add'].includes(args[0]) ? 'w' : ' longer'} a staff member!`); diff --git a/commands/dev/support.js b/commands/dev/support.js index c1fe08a..fd423b4 100644 --- a/commands/dev/support.js +++ b/commands/dev/support.js @@ -28,13 +28,13 @@ module.exports = { else {tu.support = false; tu.staff = false; tu.admin = false; tu.developer = false;} tu.save(); const logemb = (act) => new Discord.MessageEmbed() - .setAuthor(`Support ${act}`, message.author.avatarURL()) + .setAuthor({name: `Support ${act}`, iconURL: message.author.avatarURL()}) .setDescription("A user's Support status was updated.") .setThumbnail(person.avatarURL({size: 1024})) .addField("Name", person.username, true) .addField("Developer", message.author.username, true) .setColor("e8da3a") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp(); client.guilds.cache.get('762707532417335296').channels.cache.get('762732961753595915').send({embeds: [logemb(['a', 'add'].includes(args[0]) ? 'Added' : 'Removed')]}); return message.reply(`${message.guild.members.cache.get(person.id).displayName} is no${['a', 'add'].includes(args[0]) ? 'w' : ' longer'} a Support Team member!`); diff --git a/commands/dev/vip.js b/commands/dev/vip.js index 4ccd0cb..356186b 100644 --- a/commands/dev/vip.js +++ b/commands/dev/vip.js @@ -20,13 +20,13 @@ module.exports = { if (!client.developers.includes(message.author.id) && !['check', 'c', 'view', 'v'].includes(args[0])) {return message.reply("Unfortunately, this is a **developer-only command**!");} const GuildSettings = require('../../models/guild'); const logemb = (act) => new Discord.MessageEmbed() - .setAuthor(`VIP Server ${act}`, message.author.avatarURL()) + .setAuthor({name: `VIP Server ${act}`, iconURL: message.author.avatarURL()}) .setDescription("A Server's VIP status was updated.") .setThumbnail(message.guild.iconURL({size: 1024})) .addField("Name", message.guild.name, true) .addField("Admin", message.author.username, true) .setColor("e8da3a") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp(); if (['add', 'a', 'make', 'm'].includes(args[0])) { diff --git a/commands/fun/8ball.js b/commands/fun/8ball.js index 72541ee..a39d78f 100644 --- a/commands/fun/8ball.js +++ b/commands/fun/8ball.js @@ -26,10 +26,10 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; return message.reply({embeds: [new Discord.MessageEmbed() - .setAuthor("8ball Question", message.author.avatarURL()) + .setAuthor({name: "8ball Question", iconURL: message.author.avatarURL()}) .setDescription("**Question:** " + question + "\n**Answer:** " + responses[Math.floor(Math.random() * responses.length)]) .setColor("c375f0") - .setFooter(`Asked by ${name} | Natsuki`) + .setFooter({text: `Asked by ${name} | Natsuki`}) .setTimestamp()]} ); } diff --git a/commands/fun/bite.js b/commands/fun/bite.js index f267694..bef733a 100644 --- a/commands/fun/bite.js +++ b/commands/fun/bite.js @@ -25,7 +25,7 @@ module.exports = { if (!message.guild.members.cache.has(mention.id)) {return message.reply("That user is not in this server!");} if (message.author.id === mention.id) {return message.reply("Ew quit tryna bite yourself, that's weird.");} return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} bites ${message.guild.members.cache.get(mention.id).displayName}`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} bites ${message.guild.members.cache.get(mention.id).displayName}`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('d93846') ]}); diff --git a/commands/fun/deathnote.js b/commands/fun/deathnote.js index 7cb34b3..6e8f889 100644 --- a/commands/fun/deathnote.js +++ b/commands/fun/deathnote.js @@ -107,7 +107,7 @@ module.exports = { let note = await message.channel.send({embeds: [new Discord.MessageEmbed() .setDescription(pretext) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); @@ -131,10 +131,10 @@ module.exports = { } let finalEmbed = new Discord.MessageEmbed() - .setAuthor(title, message.author.avatarURL()) + .setAuthor({name: title, iconURL: message.author.avatarURL()}) .setDescription(`${text}${dns ? `\n\n_Their name is in your deathnote **${dns.against[mention.id] === 1 ? 'once' : `${dns.against[mention.id]} times`}.**_` : ''}`) .setColor('c375f0') - .setFooter(`Natsuki${dns ? ` | ${dns.total} name${dns.total === 1 ? ' has been' : 's'} written in your deathnote!` : ''}`) + .setFooter({text: `Natsuki${dns ? ` | ${dns.total} name${dns.total === 1 ? ' has been' : 's'} written in your deathnote!` : ''}`}) .setTimestamp(); if (mention) {finalEmbed.setThumbnail(mention.avatarURL({size: 1024}));} diff --git a/commands/fun/nowplaying.js b/commands/fun/nowplaying.js index 56be87b..845aae3 100644 --- a/commands/fun/nowplaying.js +++ b/commands/fun/nowplaying.js @@ -29,7 +29,7 @@ module.exports = { stream.on('nowPlaying', t => { clearTimeout(timeout); message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.guild.members.cache.get(user.id) ? message.guild.members.cache.get(user.id).displayName : user.username : user.username, user.avatarURL()) + .setAuthor({name: message.guild ? message.guild.members.cache.get(user.id) ? message.guild.members.cache.get(user.id).displayName : user.username : user.username, iconURL: user.avatarURL()}) .setTitle(`${saves.get(user.id)} | Now Playing`) .setDescription(`<@${user.id}> is currently listening to **${t.name}** by **${t.artist['#text']}**.\nView the song [here](${t.url}).`) .setColor("c375f0") diff --git a/commands/fun/secretsanta.js b/commands/fun/secretsanta.js index 7c2858b..7fcd721 100644 --- a/commands/fun/secretsanta.js +++ b/commands/fun/secretsanta.js @@ -82,7 +82,7 @@ module.exports = { .addField("ID", `\`${id}\``, true) .addField("Owner", message.author.username, true) .setColor("01bd2f") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } @@ -117,7 +117,7 @@ module.exports = { .addField("Owner", o.username, true) .addField("Members", `${tss.members ? tss.members.length : 0}`, true) .setColor("01bd2f") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); diff --git a/commands/fun/slap.js b/commands/fun/slap.js index 5a480a4..cc05d17 100644 --- a/commands/fun/slap.js +++ b/commands/fun/slap.js @@ -31,11 +31,11 @@ module.exports = { slaps.markModified(`against.${mention.id}`); slaps.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} slaps ${message.guild.members.cache.get(mention.id).displayName}`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} slaps ${message.guild.members.cache.get(mention.id).displayName}`, iconURL: message.author.avatarURL()}) .setDescription(`That makes slap **#${slaps.against[mention.id]}** from you to them!`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('d93846') - .setFooter(`${slaps.total} slap${slaps.total === 1 ? '' : 's'} total`) + .setFooter({text: `${slaps.total} slap${slaps.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/leveling/leaderboard.js b/commands/leveling/leaderboard.js index c86c272..629846d 100644 --- a/commands/leveling/leaderboard.js +++ b/commands/leveling/leaderboard.js @@ -31,7 +31,7 @@ module.exports = { .setThumbnail(message.guild.iconURL({size: 2048, dynamic: true})) .addField("Level", lvls) .setColor('c375f0') - .setFooter("Natsuki | Stats may be up to 2 minutes out of sync") + .setFooter({text: "Natsuki | Stats may be up to 2 minutes out of sync"}) .setTimestamp() ]}); diff --git a/commands/leveling/levelrole.js b/commands/leveling/levelrole.js index 74416ee..2f6cc34 100644 --- a/commands/leveling/levelrole.js +++ b/commands/leveling/levelrole.js @@ -64,7 +64,7 @@ module.exports = { .setThumbnail(message.guild.iconURL({size: 2048})) .setDescription(s) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/leveling/setupleveling.js b/commands/leveling/setupleveling.js index bc7552a..77f1bcb 100644 --- a/commands/leveling/setupleveling.js +++ b/commands/leveling/setupleveling.js @@ -38,7 +38,7 @@ module.exports = { .setThumbnail(message.guild.iconURL({size: 2048})) .setDescription(`Your server now has its leveling system enabled! If you enabled level up messages, you can set the channel for that using \`${prefix}levelchannel\`.`) //TODO update this with info on how the shiz works .setColor("c375f0") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); }); diff --git a/commands/leveling/stats.js b/commands/leveling/stats.js index 0663a93..d7895c6 100644 --- a/commands/leveling/stats.js +++ b/commands/leveling/stats.js @@ -34,7 +34,7 @@ module.exports = { .addField("XP", `**${xp.xp}** of **${Math.ceil(100 + (((xp.level / 3) ** 2) * 2))}** needed to level up`, true) .setThumbnail(client.users.cache.get(u.id).avatarURL({size: 2048})) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}) } diff --git a/commands/misc/ar.js b/commands/misc/ar.js index d16123e..beabbfb 100644 --- a/commands/misc/ar.js +++ b/commands/misc/ar.js @@ -72,7 +72,7 @@ module.exports = { .setTitle("Auto-Responses in this Server") .setDescription(string) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (mode) {embed.addField(mode === 'edit' ? "Editing" : 'Deletion', `Please say the **number** of the AR you wish to ${mode}.`);} let r = await message.channel.send({embeds: [embed]}); diff --git a/commands/misc/commands.js b/commands/misc/commands.js index cecef8c..930de10 100644 --- a/commands/misc/commands.js +++ b/commands/misc/commands.js @@ -17,7 +17,7 @@ module.exports = { .setTitle("Commands") .setDescription(`You can use \`${prefix}help\` on any command to get more help on it.`) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); categories.forEach(category => ce.addField(category, Array.from(client.commands.values()).filter(command => command.meta ? command.meta.category === category : category === "Uncategorized").map(cmd => `\`${cmd.name}\``).join(', '))); return message.channel.send({embeds: [ce]}); diff --git a/commands/misc/emoji.js b/commands/misc/emoji.js index 509b760..675317c 100644 --- a/commands/misc/emoji.js +++ b/commands/misc/emoji.js @@ -34,7 +34,7 @@ module.exports = { .setDescription(`Name: ${spl[1] ? `\`:${spl[1]}:\`` : "Not Found"}\nID: ${spl[2].slice(0, spl[2].length - 1)}\nURL: [Here](${`https://cdn.discordapp.com/emojis/${spl[2].slice(0, spl[2].length - 1)}${spl[0].includes('a') ? '.gif' : ""}`})\nAnimated: ${spl[0].includes('a') === true}\n\nI have access: ${client.emojis.cache.has(spl[2].slice(0, spl[2].length - 1))}`) .setColor('c375f0') .setImage(`https://cdn.discordapp.com/emojis/${spl[2].slice(0, spl[2].length - 1)}${spl[0].includes('a') ? '.gif' : ""}`) - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (client.emojis.cache.has(spl[2].slice(0, spl[2].length - 1))) {finEm.setThumbnail(client.emojis.cache.get(spl[2].slice(0, spl[2].length - 1)).guild.iconURL({size: 1024}));} if (client.emojis.cache.has(spl[2].slice(0, spl[2].length - 1)) && client.emojis.cache.get(spl[2].slice(0, spl[2].length - 1)).guild.members.cache.has(message.author.id) && client.emojis.cache.get(spl[2].slice(0, spl[2].length - 1)).guild.id !== (message.guild ? message.guild.id : 1)) {finEm.addField("Server", `You're in the server this emoji is from: **${client.emojis.cache.get(spl[2].slice(0, spl[2].length - 1)).guild.name}**`);} @@ -63,7 +63,7 @@ module.exports = { .setTitle(`Emoji Lookup Results [${(x * 20) + 1}-${(x * 20) + 20} of ${lookup.size}]`) .setDescription(page) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ); if (cond) {break;} @@ -78,7 +78,7 @@ module.exports = { .setTitle(`Emoji Lookup Results - ${lookup.size}`) .setDescription(page) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } @@ -110,7 +110,7 @@ module.exports = { .setDescription(`Name: ${name ? `\`:${name}:\`` : "Not Found"}\nID: ${id}\nURL: [Here](${url})\nAnimated: ${animated === true}\n\nI have access: ${access}`) .setColor('c375f0') .setImage(url) - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (access) {finEm.setThumbnail(client.emojis.cache.get(id).guild.iconURL({size: 1024}));} if (access && client.emojis.cache.get(id).guild.members.cache.has(message.author.id) && client.emojis.cache.get(id).guild.id !== (message.guild ? message.guild.id : 1)) {finEm.addField("Server", `You're in the server this emoji is from: **${client.emojis.cache.get(id).guild.name}**`);} diff --git a/commands/misc/help.js b/commands/misc/help.js index 5dd935c..1755e15 100644 --- a/commands/misc/help.js +++ b/commands/misc/help.js @@ -18,7 +18,7 @@ module.exports = { let category; for (category of Object.keys(sorted)) { let categorySorted = []; let current = 1; - let currentEmbed = new Discord.MessageEmbed().setAuthor("Help Menu", message.author.avatarURL()).setTitle(category).setDescription("React to control the menu! You can also specify a command name when doing the help command to get more info about it.").setColor("c375f0"); + let currentEmbed = new Discord.MessageEmbed().setAuthor({name: "Help Menu", iconURL: message.author.avatarURL()}).setTitle(category).setDescription("React to control the menu! You can also specify a command name when doing the help command to get more info about it.").setColor("c375f0"); let commands = Object.keys(sorted[category]); let command; for (command of commands) { let aliases = ''; @@ -29,7 +29,7 @@ module.exports = { if (current === 5) { categorySorted.push(currentEmbed); current = 1; - currentEmbed = new Discord.MessageEmbed().setAuthor("Help Menu", message.author.avatarURL()).setTitle(category).setDescription("React to control the menu! You can also specify a command name when doing the help command to get more info about it.").setColor("c375f0"); + currentEmbed = new Discord.MessageEmbed().setAuthor({name: "Help Menu", iconURL: message.author.avatarURL()}).setTitle(category).setDescription("React to control the menu! You can also specify a command name when doing the help command to get more info about it.").setColor("c375f0"); } } if (current > 1) {categorySorted.push(currentEmbed);} @@ -42,7 +42,7 @@ module.exports = { .setDescription(`Here you can find a list of commands and how to use them.\n\nNatsuki's prefix, by default, is \`n?\`. Here, it's \`${prefix}\`.\n\nWhen viewing a command's syntax, a parameter/argument marked with <> means that it is required. [] shows that it is optional.\n\nGet more help on a command by sending it without any arguments (i.e. \`${prefix}anime\`), or run \`${prefix}help \`.`) .addField("Category", "What category would you like to view?\n:one: - Fun\n:two: - Utility\n:three: - Misc\n:four: - Developer\n:five: - Moderation\n:six: - Social\n:seven: - Leveling\n:eight: - Anime\n:nine: - **All**") .setColor('c375f0') - .setFooter("Natsuki | Will time out in 60 seconds.") + .setFooter({text: "Natsuki | Will time out in 60 seconds."}) .setThumbnail(client.user.avatarURL({size: 2048})) .setTimestamp() ]}); @@ -100,7 +100,7 @@ module.exports = { if (pages.length > 1) { let help = new Pagination(message.channel, pages, message, client, true); return await help.start({endTime: 60000, user: message.author.id}).catch(() => {}); - } else {return message.channel.send({embeds: [pages[0].setFooter("Natsuki", client.user.avatarURL()).setTimestamp()]}).catch(() => {});} + } else {return message.channel.send({embeds: [pages[0].setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}).setTimestamp()]}).catch(() => {});} } else { let command; if (client.commands.has(args[0])) {command = client.commands.get(args[0]);} @@ -109,7 +109,7 @@ module.exports = { return message.reply(command.help ? command.help instanceof Discord.MessageEmbed - ? {embeds: [command.help.setFooter("Natsuki | [optional]", client.user.avatarURL()).setColor("c375f0").setTimestamp()]} + ? {embeds: [command.help.setFooter({text: "Natsuki | [optional]", iconURL: client.user.avatarURL()}).setColor("c375f0").setTimestamp()]} : command.help.replace(/{{p}}/g, prefix) : "I don't seem to have any help info available for that command." ); diff --git a/commands/misc/info.js b/commands/misc/info.js index 5dd33a0..5200ee8 100644 --- a/commands/misc/info.js +++ b/commands/misc/info.js @@ -19,7 +19,7 @@ module.exports = { let user = await UserData.findOne({uid: message.author.id}); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor("About Me!", client.users.cache.get(client.developers[Math.floor(Math.random() * client.developers.length)]).avatarURL()) + .setAuthor({name: "About Me!", iconURL: client.users.cache.get(client.developers[Math.floor(Math.random() * client.developers.length)]).avatarURL()}) .setThumbnail(client.user.avatarURL({size: 1024})) .setDescription(`I am created by WubzyGD#8766 and Slushie#1234 - a pair conveniently known as NatsukiDev - in JavaScript/Discord.js!\n\nI'm a powerful all-purpose bot with everything you could want or need, and I have my own set of unique skills that you won't find anywhere else ^^`) .addField("Presence", `I'm currently in **${client.guilds.cache.size}** servers, and I'm watching over approximately **${client.users.cache.size}** people!`) @@ -28,7 +28,7 @@ module.exports = { .addField("Last Restart", moment(botData.lastRestart).fromNow(), true) .addField("Mem", `\`${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}MB\` heap of \`${(process.memoryUsage().heapTotal / 1024 / 1024).toFixed(2)}MB\` allocated. | **${Math.floor((process.memoryUsage().heapUsed / process.memoryUsage().heapTotal) * 100)}%**\nTotal RAM: \`${(os.totalmem() / 1024 / 1024 / 1024).toFixed(2)}GB\` | Free RAM: \`${(os.freemem() / 1024 / 1024 / 1024).toFixed(2)}GB\``, true) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } diff --git a/commands/misc/invite.js b/commands/misc/invite.js index 28c92b2..f39e2b0 100644 --- a/commands/misc/invite.js +++ b/commands/misc/invite.js @@ -16,7 +16,7 @@ module.exports = { .setThumbnail(client.user.avatarURL({size: 2048})) .setDescription("[Bot Invite](https://discord.com/oauth2/authorize?client_id=762701327431237644&scope=bot&permissions=1581116647)\n`->` Use this link to invite Natsuki to your server! This has all the required permissions in it that the I need to work, and it is not recommended that you change them. Doing so will make it so that some commands don't function properly or won't complete (I'll usually tell you when I'm missing a permission).\n\n[Support Server Invite](https://discord.gg/u9c2uD24wB)\n`->` Use this to join my support server! Here you can talk to the devs, suggest features, hang out with the community, get update alerts, report bugs/issues and get help, or just stop and say hi!") .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } diff --git a/commands/misc/prefix.js b/commands/misc/prefix.js index 9f17184..38d0c9d 100644 --- a/commands/misc/prefix.js +++ b/commands/misc/prefix.js @@ -36,12 +36,12 @@ module.exports = { let upm = await message.reply("sure thing!"); await require('../../util/wait')(1750); return upm.edit({embeds: [new Discord.MessageEmbed() - .setAuthor('Prefix updated!', message.author.avatarURL()) + .setAuthor({name: 'Prefix updated!', iconURL: message.author.avatarURL()}) .setDescription(`New prefix: \`${np}\``) .addField('Auditing Admin', `<@${message.member.id}>`, true) .addField("Notice", "Prefixes are cached, and may take up to a minute to update.") .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/misc/serverinfo.js b/commands/misc/serverinfo.js index a023624..ed5ef35 100644 --- a/commands/misc/serverinfo.js +++ b/commands/misc/serverinfo.js @@ -15,7 +15,7 @@ module.exports = { execute(message, msg, args, cmd, prefix, mention, client) { let now = new Date(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor("Server info", message.author.avatarURL()) + .setAuthor({name: "Server info", iconURL: message.author.avatarURL()}) .setTitle(message.guild.name) .setThumbnail(message.guild.iconURL({size: 2048})) .setDescription(`Name: \`${message.guild.name}\`\n\nOwner: <@${message.guild.ownerId}>\nRegion: ${message.guild.region}\nIcon: [URL](${message.guild.iconURL({size: 2048})})`) @@ -24,7 +24,7 @@ module.exports = { .addField("Roles", `${message.guild.roles.cache.size} (you have ${message.member.roles.cache.size})\nYour highest is <@&${message.member.roles.highest.id}>`, true) .addField("Other Info", `Server created roughly **${moment(message.guild.createdAt).fromNow()}**\n\nYou joined ${moment(message.member.joinedAt).fromNow()} (Member for **${Math.round(((now.getTime() - new Date(message.member.joinedAt.getTime()).getTime()) / (new Date(message.guild.createdAt).getTime() - now.getTime())) * -100)}%** of server lifetime)`) .setColor('c375f0') - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } diff --git a/commands/misc/supportserver.js b/commands/misc/supportserver.js index e79fdca..6710d2f 100644 --- a/commands/misc/supportserver.js +++ b/commands/misc/supportserver.js @@ -16,7 +16,7 @@ module.exports = { .setThumbnail(client.user.avatarURL({size: 2048})) .setDescription("Join the server with [this link](https://discord.gg/u9c2uD24wB)!\n\n`->` Here you can talk to the devs, suggest features, hang out with the community, get update alerts, report bugs/issues and get help, or just stop and say hi!") .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } diff --git a/commands/misc/uptime.js b/commands/misc/uptime.js index 3c897dc..45897c1 100644 --- a/commands/misc/uptime.js +++ b/commands/misc/uptime.js @@ -21,7 +21,7 @@ module.exports = { .setTitle("Uptime") .setDescription(`${moment.preciseDiff(moment(bot.lastRestart), moment())}`) .setColor('c375f0') - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}) } diff --git a/commands/misc/userinfo.js b/commands/misc/userinfo.js index 419d354..54eb21b 100644 --- a/commands/misc/userinfo.js +++ b/commands/misc/userinfo.js @@ -25,7 +25,7 @@ module.exports = { .addField("Account Created", `${moment(client.users.cache.get(person.id).createdAt).fromNow()}`, true) .addField("Bot User?", client.users.cache.get(person.id).bot ? "Is a bot" : "Is not a bot", true) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (message.guild) { diff --git a/commands/moderation/autorole.js b/commands/moderation/autorole.js index 52c5a9e..4ee54b4 100644 --- a/commands/moderation/autorole.js +++ b/commands/moderation/autorole.js @@ -31,7 +31,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Role: ${tg.joinrole.length ? `<@&${tg.joinrole}>` : "None"}`) .setColor("c375f0") - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ); } diff --git a/commands/moderation/checkwarnings.js b/commands/moderation/checkwarnings.js index e7d5ab4..77bb4bf 100644 --- a/commands/moderation/checkwarnings.js +++ b/commands/moderation/checkwarnings.js @@ -43,7 +43,7 @@ module.exports = { .setDescription(`For ${user.displayName}`) .addField("Warnings", ws) .setColor("c375f0") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/moderation/leave.js b/commands/moderation/leave.js index d039659..90fe85b 100644 --- a/commands/moderation/leave.js +++ b/commands/moderation/leave.js @@ -41,7 +41,7 @@ module.exports = { .setTitle("Leave Channel/Message Updated") .setDescription(`This server's leave-notifying settings have been altered by ${message.author.tag}.\n\n**Channel**: <#${ch}>\n**Response Name**: \`${args[2].toLowerCase()}\``) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}) } @@ -64,7 +64,7 @@ module.exports = { .setTitle("Leave Channel/Message Updated") .setDescription(`This server's leave-notifying settings have been altered by ${message.author.tag}.\n\n**Channel**: None`) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/moderation/response.js b/commands/moderation/response.js index 947423d..e8638e0 100644 --- a/commands/moderation/response.js +++ b/commands/moderation/response.js @@ -68,7 +68,7 @@ module.exports = { .addField("Name/ID", args[1].toLowerCase(), true) .addField("Type", tr.responses.get(args[1].toLowerCase()).embed ? "Embed" : "Message", true) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (hasBinding) {infoEmbed.addField("Server Bindings", bm);} return message.channel.send({embeds: [infoEmbed]}); diff --git a/commands/moderation/staffrole.js b/commands/moderation/staffrole.js index bb78605..2a20aaa 100644 --- a/commands/moderation/staffrole.js +++ b/commands/moderation/staffrole.js @@ -42,12 +42,12 @@ module.exports = { let upm = await message.reply("sure thing!"); await require('../../util/wait')(1750); return upm.edit({embeds: [new Discord.MessageEmbed() - .setAuthor('Staff role updated!', message.author.avatarURL()) + .setAuthor({name: 'Staff role updated!', iconURL: message.author.avatarURL()}) .setDescription(`<@&${tguild.staffrole}> can now edit my settings in this server.`) .addField('Auditing Admin', `<@${message.member.id}>`, true) .addField('Role-Holders', `${message.guild.members.cache.filter(m => m.roles.cache.has(tguild.staffrole) && !client.users.cache.get(m.id).bot).size}+ members have this role`, true) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index c591d29..8fb3390 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -51,7 +51,7 @@ module.exports = { .setDescription(`For ${user.displayName}`) .addField("Warnings", ws) .setColor("c375f0") - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/moderation/welcome.js b/commands/moderation/welcome.js index 09e2537..ae2969b 100644 --- a/commands/moderation/welcome.js +++ b/commands/moderation/welcome.js @@ -41,7 +41,7 @@ module.exports = { .setTitle("Welcome Channel/Message Updated") .setDescription(`This server's member-welcoming settings have been altered by ${message.author.tag}.\n\n**Channel**: <#${ch}>\n**Response Name**: \`${args[2].toLowerCase()}\``) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}) } @@ -64,7 +64,7 @@ module.exports = { .setTitle("Welcome Channel/Message Updated") .setDescription(`This server's member-welcoming settings have been altered by ${message.author.tag}.\n\n**Channel**: None`) .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/social/bio.js b/commands/social/bio.js index 99a7c1b..758f254 100644 --- a/commands/social/bio.js +++ b/commands/social/bio.js @@ -26,7 +26,7 @@ module.exports = { .setThumbnail(client.users.cache.get(person).avatarURL({size: 2048})) .setDescription(pud.bio) .setColor(pud.color && pud.color.length ? pud.color : 'c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } @@ -48,7 +48,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(tu.bio) .setColor(tu.color && tu.color.length ? tu.color : 'c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/social/bonk.js b/commands/social/bonk.js index 2407a9a..949615c 100644 --- a/commands/social/bonk.js +++ b/commands/social/bonk.js @@ -24,7 +24,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Give them one with \`${prefix}bonk @${message.member.displayName}\`!`) .setColor('dda0dd') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "I fucking dare you to hit me." );} @@ -38,11 +38,11 @@ module.exports = { bonk.markModified(`against.${mention.id}`); bonk.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} bonks ${message.guild.members.cache.get(mention.id).displayName}!...ouch! `, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} bonks ${message.guild.members.cache.get(mention.id).displayName}!...ouch! `, iconURL: message.author.avatarURL()}) .setDescription(`You've bonked them **${bonk.against[mention.id] === 1 ? 'once' : `${bonk.against[mention.id]} times!`}**`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('dda0dd') - .setFooter(`${bonk.total} bonk${bonk.total === 1 ? '' : 's'} total`) + .setFooter({text: `${bonk.total} bonk${bonk.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/social/creampie.js b/commands/social/creampie.js index 254478d..21e5475 100644 --- a/commands/social/creampie.js +++ b/commands/social/creampie.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Help with their..ahem..problem..with \`${prefix}creampie @${name}\`!`) .setColor('fffdd0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Do. Not. Touch. Me." );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives a massive creampie to ${message.guild.members.cache.get(mention.id).displayName}..Tasty!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} gives a massive creampie to ${message.guild.members.cache.get(mention.id).displayName}..Tasty!`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('fffdd0') ]}); diff --git a/commands/social/feed.js b/commands/social/feed.js index 8bd7ca5..caf3946 100644 --- a/commands/social/feed.js +++ b/commands/social/feed.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Bless someone with some food with \`${prefix}feed @${name}\`!`) .setColor('bb0a1e') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Sorry..I'm kinda full right now." );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} feeds ${message.guild.members.cache.get(mention.id).displayName} a delicous treat!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} feeds ${message.guild.members.cache.get(mention.id).displayName} a delicous treat!`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('fed8b1') ]}); diff --git a/commands/social/fuck.js b/commands/social/fuck.js index 1c67dce..d236f1e 100644 --- a/commands/social/fuck.js +++ b/commands/social/fuck.js @@ -24,7 +24,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Show them some love with \`${prefix}fuck @${message.member.displayName}\`!`) .setColor('dda0dd') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "You can't bang me.......only Wubzy can." );} @@ -48,11 +48,11 @@ module.exports = { fuck.markModified(`against.${mention.id}`); fuck.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} bangs ${message.guild.members.cache.get(mention.id).displayName}!...Kinky! `, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} bangs ${message.guild.members.cache.get(mention.id).displayName}!...Kinky! `, iconURL: message.author.avatarURL()}) .setDescription(`You've banged them **${fuck.against[mention.id] === 1 ? 'once' : `${fuck.against[mention.id]} times!`}**`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('dda0dd') - .setFooter(`${fuck.total} fuck${fuck.total === 1 ? '' : 's'} total`) + .setFooter({text: `${fuck.total} fuck${fuck.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/social/handhold.js b/commands/social/handhold.js index e8fb12a..28a96c7 100644 --- a/commands/social/handhold.js +++ b/commands/social/handhold.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Let them know you love them with \`${prefix}handhold @${name}\`!`) .setColor('328ba8') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Yikes... I'm kinda germaphobic you know. Maybe try asking in a server?" );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} holds ${uname.endsWith('s') ? `${uname}'` : `${uname}'s`} hand!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} holds ${uname.endsWith('s') ? `${uname}'` : `${uname}'s`} hand!`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('d428a0') ]}); diff --git a/commands/social/heal.js b/commands/social/heal.js index 9af3036..f27e846 100644 --- a/commands/social/heal.js +++ b/commands/social/heal.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Lend them some help with \`${prefix}heal @${name}\`!`) .setColor('ffc0cb') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "I am immortal, I don't need healing." );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} heals ${message.guild.members.cache.get(mention.id).displayName}!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} heals ${message.guild.members.cache.get(mention.id).displayName}!`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('ffc0cb') ]}); diff --git a/commands/social/hug.js b/commands/social/hug.js index 6c67fd1..ae47c13 100644 --- a/commands/social/hug.js +++ b/commands/social/hug.js @@ -24,7 +24,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Show them some love with \`${prefix}hug @${message.member.displayName}\`!`) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Sorry, but I'm a bot, and I can't hug you. Go into a server and ask for some hugs!" );} @@ -38,11 +38,11 @@ module.exports = { hugs.markModified(`against.${mention.id}`); hugs.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a hug!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a hug!`, iconURL: message.author.avatarURL()}) .setDescription(`You've hugged them **${hugs.against[mention.id] === 1 ? 'once' : `${hugs.against[mention.id]} times!`}**`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('52c7bb') - .setFooter(`${hugs.total} hug${hugs.total === 1 ? '' : 's'} total`) + .setFooter({text: `${hugs.total} hug${hugs.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/social/kill.js b/commands/social/kill.js index a5759c0..2d06868 100644 --- a/commands/social/kill.js +++ b/commands/social/kill.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Brutally murder someone with \`${prefix}kill @${name}\`!`) .setColor('bb0a1e') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "You can't kill me..don't even try." );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} brutally murders ${message.guild.members.cache.get(mention.id).displayName}..Rest in Peace.`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} brutally murders ${message.guild.members.cache.get(mention.id).displayName}..Rest in Peace.`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('bb0a1e') ]}); diff --git a/commands/social/kiss.js b/commands/social/kiss.js index 42aafb7..d7cc506 100644 --- a/commands/social/kiss.js +++ b/commands/social/kiss.js @@ -21,7 +21,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Give them a little kiss with \`${prefix}kiss @${message.member.displayName}\`!`) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "I'm not really into that kind of thing. Maybe try asking in a server?" );} @@ -30,7 +30,7 @@ module.exports = { if (!message.guild.members.cache.has(mention.id)) {return message.reply("That user is not in this server!");} if (message.author.id === mention.id) {return message.reply("A self-kiss ought to be a little hard, don't you think?");} return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} kisses ${message.guild.members.cache.get(mention.id).displayName}`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} kisses ${message.guild.members.cache.get(mention.id).displayName}`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('d428a0') ]}); diff --git a/commands/social/pat.js b/commands/social/pat.js index f37027d..c47c0d0 100644 --- a/commands/social/pat.js +++ b/commands/social/pat.js @@ -25,7 +25,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Give them some with \`${prefix}pat @${message.member.displayName}\`!`) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Sorry, but I'm only able to pat one person, and it's not you ^^" );} @@ -39,11 +39,11 @@ module.exports = { pats.markModified(`against.${mention.id}`); pats.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} pats ${message.guild.members.cache.get(mention.id).displayName}!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} pats ${message.guild.members.cache.get(mention.id).displayName}!`, iconURL: message.author.avatarURL()}) .setDescription(`You've given them **${pats.against[mention.id]}** pat${pats.against[mention.id] === 1 ? '' : 's'}!`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('52c7bb') - .setFooter(`${pats.total} pat${pats.total === 1 ? '' : 's'} total`) + .setFooter({text: `${pats.total} pat${pats.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/social/simp.js b/commands/social/simp.js index 2859908..bd4530f 100644 --- a/commands/social/simp.js +++ b/commands/social/simp.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Fall madly in love with someone with \`${prefix}simp @${name}\`!`) .setColor('ffb6c1') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "Nobody simps for me. That's just weird. Be weird to someone else." );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} falls madly in love with ${message.guild.members.cache.get(mention.id).displayName}..what a simp.`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} falls madly in love with ${message.guild.members.cache.get(mention.id).displayName}..what a simp.`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('ffb6c1') ]}); diff --git a/commands/social/spank.js b/commands/social/spank.js index 37cabf7..57a8761 100644 --- a/commands/social/spank.js +++ b/commands/social/spank.js @@ -29,11 +29,11 @@ module.exports = { spanks.markModified(`against.${mention.id}`); spanks.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a spank!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a spank!`, iconURL: message.author.avatarURL()}) .setDescription(`You've spanked them **${spanks.against[mention.id] === 1 ? 'once' : `${spanks.against[mention.id]} times!`}**`) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('52c7bb') - .setFooter(`${spanks.total} spank${spanks.total === 1 ? '' : 's'} total`) + .setFooter({text: `${spanks.total} spank${spanks.total === 1 ? '' : 's'} total`}) ]}); } if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { diff --git a/commands/social/wink.js b/commands/social/wink.js index 9ae79ad..9234b7e 100644 --- a/commands/social/wink.js +++ b/commands/social/wink.js @@ -23,7 +23,7 @@ module.exports = { .setThumbnail(message.author.avatarURL({size: 2048})) .setDescription(`Give them a little wink with \`${prefix}wink @${name}\`!`) .setColor('8a2be2') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp()]} : "W-why are you winking at me privately..do it in a server! " );} @@ -34,7 +34,7 @@ module.exports = { let name = message.guild ? message.member.displayName : message.author.username; let uname = message.guild.members.cache.get(mention.id).displayName; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(`${message.guild ? message.member.displayName : message.author.username} winks at ${message.guild.members.cache.get(mention.id).displayName}!`, message.author.avatarURL()) + .setAuthor({name: `${message.guild ? message.member.displayName : message.author.username} winks at ${message.guild.members.cache.get(mention.id).displayName}!`, iconURL: message.author.avatarURL()}) .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) .setColor('8a2be2') ]}); diff --git a/commands/utility/coinflip.js b/commands/utility/coinflip.js index 03242e8..cf4fd04 100644 --- a/commands/utility/coinflip.js +++ b/commands/utility/coinflip.js @@ -40,10 +40,10 @@ module.exports = { let flip = [1,2][Math.floor(Math.random() * 2)]; let coinEmbed = new Discord.MessageEmbed() - .setAuthor("Coin Flip", message.author.avatarURL()) + .setAuthor({name: "Coin Flip", iconURL: message.author.avatarURL()}) .setThumbnail(flip === 1 ? "https://cdn.discordapp.com/attachments/563198656241598484/655514893033799700/SmartSelect_20191214-140108_Samsung_Internet.jpg" : "https://cdn.discordapp.com/attachments/563198656241598484/655514881293811753/SmartSelect_20191214-140131_Samsung_Internet.jpg") .setDescription(`Flipped by ${message.guild ? message.member.displayName : message.author.username}.\nThe result is **${flip === 1 ? "Heads" : "Tails"}**`) - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setColor("c375f0") .setTimestamp(); diff --git a/commands/utility/monitor.js b/commands/utility/monitor.js index d10285f..0690e9c 100644 --- a/commands/utility/monitor.js +++ b/commands/utility/monitor.js @@ -58,7 +58,7 @@ module.exports = { .setThumbnail(message.guild.iconURL({size: 1024})) .setDescription("*These statistics have an accuracy of about 10 minutes.*") .setColor('c375f0') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (thm) {emb.addField("Top Channels", chs).addField("Top Members", us);} diff --git a/commands/utility/randnum.js b/commands/utility/randnum.js index 8a9697e..1651b3c 100644 --- a/commands/utility/randnum.js +++ b/commands/utility/randnum.js @@ -44,7 +44,7 @@ module.exports = { .setTitle(`Random Number${num.length > 1 ? 's' : ''}`) .setDescription(res) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); } diff --git a/commands/utility/robemote.js b/commands/utility/robemote.js index a6f15ef..2468b07 100644 --- a/commands/utility/robemote.js +++ b/commands/utility/robemote.js @@ -21,7 +21,7 @@ module.exports = { return message.channel.send({embeds: [new Discord.MessageEmbed() .setTitle("Add Emoji") .setDescription("React to this message with the emoji you want to be added to the server.") - .setFooter("This will time out in 60 seconds") + .setFooter({text: "This will time out in 60 seconds"}) .setColor('c375f0') ]}).then(m => { const rc = m.createReactionCollector((r, u) => u.id === message.author.id, {time: 60000}); @@ -29,11 +29,11 @@ module.exports = { rc.stop(); return message.guild.emojis.create(`https://cdn.discordapp.com/emojis/${r.emoji.id}`, r.emoji.name) .then(e => message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.member.displayName, message.author.avatarURL()) + .setAuthor({name: message.member.displayName, iconURL: message.author.avatarURL()}) .setTitle("Emoji Created!") .setThumbnail(`https://cdn.discordapp.com/emojis/${e.id}${e.animated ? '.gif': ''}`) .setDescription(`Name: \`:${e.name}:\`\nID: ${e.id}\nURL: [Click Me](https://cdn.discordapp.com/emojis/${e.id})`) - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setColor('c375f0') .setTimestamp() ]}).then(() => require('../../util/ask')(message, "If you'd like to rename the emoji, send the name now. Otherwise, wait 30 seconds and nothing will happen.", 30000, false, false) @@ -61,11 +61,11 @@ module.exports = { : args[0], args[1] || args[0].split(':')[1] ).then(e => message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.member.displayName, message.author.avatarURL()) + .setAuthor({name: message.member.displayName, iconURL: message.author.avatarURL()}) .setTitle("Emoji Created!") .setThumbnail(`https://cdn.discordapp.com/emojis/${e.id}${e.animated ? '.gif': ''}`) .setDescription(`Name: \`:${e.name}:\`\nID: ${e.id}\nURL: [Click Me](https://cdn.discordapp.com/emojis/${e.id}${e.animated ? '.gif': ''})`) - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setColor('c375f0') .setTimestamp() ]})) diff --git a/commands/utility/todo.js b/commands/utility/todo.js index cc784dc..b8c774b 100644 --- a/commands/utility/todo.js +++ b/commands/utility/todo.js @@ -49,12 +49,12 @@ module.exports = { let totalItems = 0; Object.keys(td.lists).forEach(l => totalItems += td.lists[l].length); return message.channel.send({content: `Your list was successfully created!`, embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`List Created: ${ln}`) .setDescription(`You now have **${Object.keys(td.lists).length}** lists (including your personal list) with a total of **${totalItems} items**.`) .addField("Managing", `-To add to your new list, use \`${prefix}todo list ${ln} add\`.\n-To view its items, use \`${prefix}todo list ${ln} view\`.\n-To delete this list, use \`${prefix}todo list delete ${ln}\`.`) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp()] }); } else if (['d', 'delete', 'r', 'remove'].includes(args[0].toLowerCase())) { @@ -64,12 +64,12 @@ module.exports = { let s = ``; let lists = Object.keys(td.lists); let i; for (i = 0; i < lists.length; i++) {if (lists[i] === 'quick') {continue;} s += `**${i}**. \`${lists[i]}\` - ${td.lists[lists[i]].length} ${td.lists[lists[i]].length === 1 ? 'item' : 'items'}\n`;} message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`Your ToDo lists`) .setDescription(s) .addField("Deletion", "To delete a list, please reply with the **name** of the list you'd like to delete.") .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); let collected; @@ -92,11 +92,11 @@ module.exports = { let i; for (i = 0; i < lists.length; i++) {if (lists[i] === 'quick') {continue;} s += `**${i}**. \`${lists[i]}\` - ${td.lists[lists[i]].length} ${td.lists[lists[i]].length === 1 ? 'item' : 'items'}\n`;} s += `\nPlus ${td.lists.quick.length} items in your quick list.`; return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(`Your ToDo lists`) .setDescription(s) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } else if (td && Object.keys(td.lists).includes(args[0].trim().toLowerCase())) { @@ -118,7 +118,7 @@ module.exports = { td.markModified(`lists.${list}`); td.save(); return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor("To-Do Added!", message.author.avatarURL()) + .setAuthor({name: "To-Do Added!", iconURL: message.author.avatarURL()}) .setDescription(`${item}\n\`->\` In ${list === 'quick' ? "your personal quick list" : `list \`${list}\``}`) .setColor('c375f0') ]}); @@ -157,7 +157,7 @@ module.exports = { td.markModified(`lists.${list}`); td.save(); let resembed = new Discord.MessageEmbed() - .setAuthor(`To-Do Item${items.length > 1 ? 's' : ''} Added!`, message.author.avatarURL()) + .setAuthor({name: `To-Do Item${items.length > 1 ? 's' : ''} Added!`, iconURL: message.author.avatarURL()}) .setDescription(`In ${list === 'quick' ? "your personal quick list" : `list \`${list}\``}\n- ${items.join('\n- ')}`) .setColor('c375f0'); if (reachedMax) {resembed.addField("Notice", "The list addition process was automatically stopped because your list reached the maximum limit of 25 items.");} @@ -174,11 +174,11 @@ module.exports = { let n = 0; let i; for (i of td.lists[list]) {n++; s += `**${n}.** ${i}\n`;} return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(list === "quick" ? "Personal Quick List" : `List: "${list}"`) .setDescription(s) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}).catch(() => { client.users.fetch(client.developers[0]).then(wubzy => wubzy.send("Hey stupid, someone got the todo length bug. Fix it.")); @@ -189,11 +189,11 @@ module.exports = { let id = ['last', 'l'].includes(args[1].toLowerCase().trim()) ? td.lists[list].length : Number(args[1]); if (id < 1 || id > td.lists[list].length) {return message.channel.send("Your number was either below 1 or doesn't have a list item to match it.");} return message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(list === "quick" ? "Personal Quick List" : `List "${list}"`) .setDescription(`List item **#${id}**\n\`->\` ${td.lists[list][id-1]}`) .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); } @@ -209,12 +209,12 @@ module.exports = { let s = ''; let n = 0; let i; for (i of td.lists[list]) {n++; s += `**${n}.** ${i}\n`;} await message.channel.send({embeds: [new Discord.MessageEmbed() - .setAuthor(message.guild ? message.member.displayName : message.author.username, message.author.avatarURL()) + .setAuthor({name: message.guild ? message.member.displayName : message.author.username, iconURL: message.author.avatarURL()}) .setTitle(list === "quick" ? "Personal Quick List" : `List "${list}"`) .setDescription(s) .addField("Deletion", "To remove an item from your list, please reply with the number of the item you no longer want on your list.") .setColor("c375f0") - .setFooter("Natsuki") + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); try {collected = await message.channel.awaitMessages({filter: m => m.author.id === message.author.id, errors: ['time'], time: 60000, max: 1});} diff --git a/events/channelCreate.js b/events/channelCreate.js index 4d6424c..70a57d6 100644 --- a/events/channelCreate.js +++ b/events/channelCreate.js @@ -8,7 +8,7 @@ module.exports = (client, channel) => { .setTitle("New Channel") .setDescription(`<#${channel.id}> || **#${channel.name}**${channel.parent && channel.parent.name ? `\nCategory: **${channel.parent.name}**` : ''}`) .setColor('936b30') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); }} diff --git a/events/channelDelete.js b/events/channelDelete.js index 0a8aa2b..bdf482e 100644 --- a/events/channelDelete.js +++ b/events/channelDelete.js @@ -7,7 +7,7 @@ module.exports = (client, channel) => { .setTitle("Channel Deleted") .setDescription(`Name: **#${channel.name}**${channel.parent && channel.parent.name ? `\nCategory: **${channel.parent.name}**` : ''}`) .setColor('936b30') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() ]}); }} diff --git a/events/guildCreate.js b/events/guildCreate.js index f348130..50c1b9a 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -15,14 +15,14 @@ module.exports = async (client, guild) => { botData.save(); client.guilds.cache.get('762707532417335296').channels.cache.get('766031709866557471').send({embeds: [new Discord.MessageEmbed() - .setAuthor('New Guild Added', client.users.cache.get(guild.ownerId).avatarURL()) + .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('Members', `${guild.members.cache.size}`, true) .addField('Position', `Server #${client.guilds.cache.size}`, true) .setColor('55ff7f') - .setFooter('Natsuki') + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); }; \ No newline at end of file diff --git a/events/guildDelete.js b/events/guildDelete.js index fa23f35..0a76a8a 100644 --- a/events/guildDelete.js +++ b/events/guildDelete.js @@ -14,14 +14,14 @@ module.exports = async (client, guild) => { botData.save(); client.guilds.cache.get('762707532417335296').channels.cache.get('766031709866557471').send({embeds: [new Discord.MessageEmbed() - .setAuthor('Server Lost', client.users.cache.get(guild.ownerId).avatarURL()) + .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('Position', `Server #${client.guilds.cache.size + 1}`, true) .setColor('ff5d6a') - .setFooter('Natsuki') + .setFooter({text: "Natsuki"}) .setTimestamp() ]}); }; \ No newline at end of file diff --git a/events/messageDelete.js b/events/messageDelete.js index aed19d0..0ed4866 100644 --- a/events/messageDelete.js +++ b/events/messageDelete.js @@ -18,7 +18,7 @@ module.exports = async (client, message) => { .setTitle('Message Deleted') .setDescription(`Sent by <@${message.author.id}> | In <#${message.channel.id}>`) .setThumbnail(message.author.avatarURL({size: 1024})) - .setColor('ecff8f').setFooter("Natsuki", client.user.avatarURL()).setTimestamp(); + .setColor('ecff8f').setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}).setTimestamp(); if (message.content && message.content.length) {mde.addField("Message", "`-> `" + message.content.toString());} if (message.attachments.size) { if (message.attachments.first().url.includes(".png") || message.attachments.first().url.includes(".jpg") || message.attachments.first().url.includes(".gif")) {/*console.log('e');*/ try {mde.setImage(message.attachments.first().url);} catch {}} diff --git a/events/messageReactionAdd.js b/events/messageReactionAdd.js index 84f7b10..2872309 100644 --- a/events/messageReactionAdd.js +++ b/events/messageReactionAdd.js @@ -18,7 +18,7 @@ module.exports = async (client, reaction, user) => { .setDescription(`Sent by ${reaction.message.member.displayName} (<@${reaction.message.author.id}>) || Channel: ${reaction.message.channel.name} (<#${reaction.message.channel.id}>)\n[Jump to Message](${reaction.message.url})`) .setThumbnail(reaction.message.author.avatarURL({size: 2048})) .setColor('ebb931') - .setFooter("Natsuki", client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (reaction.message.content.length) {starEmbed.addField("Message", reaction.message.content);} starEmbed diff --git a/events/messageUpdate.js b/events/messageUpdate.js index 98b6e40..851a85b 100644 --- a/events/messageUpdate.js +++ b/events/messageUpdate.js @@ -23,7 +23,7 @@ module.exports = async (client, oldM, newM) => { .setThumbnail(oldM.author.avatarURL({size: 1024})) .addField("Old Message", "`-> `" + oldM.content.toString()) .addField("New Message", "`-> `" + newM.content.toString()) - .setColor('8034eb').setFooter("Natsuki", client.user.avatarURL()).setTimestamp(); + .setColor('8034eb').setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}).setTimestamp(); if (newM.attachments.size && ['.png', '.jpg', '.gif'].includes(newM.attachments.first().url.slice(newM.attachments.first().url.length - 4, newM.attachments.first().url.length))) {embed.setImage(newM.attachments.first().url);} oldM.guild.channels.cache.get(ts).send({embeds: [embed]}).catch(() => {}); }} diff --git a/events/voiceStateUpdate.js b/events/voiceStateUpdate.js index 6371124..fdf525d 100644 --- a/events/voiceStateUpdate.js +++ b/events/voiceStateUpdate.js @@ -10,14 +10,14 @@ module.exports = async (client, oldState, voice) => { .setTitle(`Member Switched VCs`) .setThumbnail(client.users.cache.get(oldState.member.id).avatarURL({size: 2048, dynamic: true})) .setDescription(`Old Channel: **${oldState.channel.name}**\nNew Channel: **${voice.channel.name}**`) - .setColor('e86b8f').setFooter("Natsuki", client.user.avatarURL()).setTimestamp() + .setColor('e86b8f').setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}).setTimestamp() ]}).catch(() => {}); } else { voice.guild.channels.cache.get(ts).send({embeds: [new Discord.MessageEmbed() .setTitle(`Member ${voice.channelId ? 'Joined' : 'Left'} VC`) .setThumbnail(client.users.cache.get(oldState.member.id).avatarURL({size: 2048, dynamic: true})) .setDescription(`Channel: **${voice.channelId ? voice.channel.name : oldState.channel.name}**`) - .setColor('e86b8f').setFooter("Natsuki", client.user.avatarURL()).setTimestamp() + .setColor('e86b8f').setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}).setTimestamp() ]}).catch(() => {}); } }} diff --git a/slash/8ball.js b/slash/8ball.js index 5f3e950..b164b8a 100644 --- a/slash/8ball.js +++ b/slash/8ball.js @@ -24,10 +24,10 @@ module.exports = (client) => { /*Neutral Responses */ ,"Maybe", "I'm not sure", "I'll think about it", "Uhh Natsuki isn't here right now. I can take a message?", "I'm sure if you look deep within your heart, which is currently all over that tree, you'll find the answer", "I mean, if you think so...", "I don't have an opinion on that.", "I'll choose to remain silent." ]; return await interaction.reply({embeds: [new Discord.MessageEmbed() - .setAuthor("8ball Question", interaction.user.avatarURL()) + .setAuthor({name: "8ball Question", iconURL: interaction.user.avatarURL()}) .setDescription("**Question:** " + interaction.options.getString('question') + "\n**Answer:** " + responses[Math.floor(Math.random() * responses.length)]) .setColor("c375f0") - .setFooter(`Asked by ${interaction.guild ? interaction.member.displayName : interaction.user.username} | Natsuki`) + .setFooter({text: `Asked by ${interaction.guild ? interaction.member.displayName : interaction.user.username} | Natsuki`}) .setTimestamp() ], ephemeral: !interaction.options.getBoolean("send")}); } diff --git a/slash/userinfo.js.dev b/slash/userinfo.js.dev index 1e43ebb..d87bd27 100644 --- a/slash/userinfo.js.dev +++ b/slash/userinfo.js.dev @@ -35,7 +35,7 @@ module.exports = (client) => { .addField("Account Created", moment(client.users.cache.get(person.id).createdAt).fromNow(), true) .addField("Bot User?", client.users.cache.get(person.id).bot ? "Is a bot" : "Is not a bot", true) .setColor('c375f0') - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (interaction.guild) { diff --git a/util/anime/anisearch.js b/util/anime/anisearch.js index 3060ac1..d193f5e 100644 --- a/util/anime/anisearch.js +++ b/util/anime/anisearch.js @@ -12,11 +12,11 @@ module.exports = async (message, client, search, threshold=-10000, type='full') let an = ani.plot ? ani : await Ani.findOne({id: client.misc.cache.anime.get(ani)}); let rte = new Discord.MessageEmbed() .setTitle(an.name) - .setAuthor('Anime Search', message.author.avatarURL()) + .setAuthor({name: 'Anime Search', iconURL: message.author.avatarURL()}) .setDescription(`**Name:** ${an.name}\n**Japanese Name:** ${an.japname}\n\n**Publishers:** ${an.publishers.join(", ")}\n**Studios:** ${an.studios.join(", ")}`) .setColor("c375f0") .setImage(an.thumbnail) - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp() if (type === 'full') { rte diff --git a/util/anime/charsearch.js b/util/anime/charsearch.js index f240cb8..7e27262 100644 --- a/util/anime/charsearch.js +++ b/util/anime/charsearch.js @@ -16,12 +16,12 @@ module.exports = async (message, client, search, threshold=-10000, type='full') cch.images.push(cch.thumbnail); let rte = new Discord.MessageEmbed() .setTitle(cch.name) - .setAuthor('Character Search', message.author.avatarURL()) + .setAuthor({name: 'Character Search', iconURL: message.author.avatarURL()}) .setDescription(`**Name:** ${cch.name}`) .addField('Other', `**Anime**: ${forceAni ? cch.anime : `${ani.name} | ${ani.japname} | \`${ani.id}\``}\n\n**Gender**: ${cch.gender}\n`) .setColor("c375f0") .setImage(cch.images[Math.floor(Math.random() * (cch.images.length + 1))]) - .setFooter('Natsuki', client.user.avatarURL()) + .setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) .setTimestamp(); if (type === 'full') { rte.addField("Loved by", `**${cch.loved}** Natsuki user${cch.loved === 1 ? '' : 's'}!\n\`char love ${cch.name}\``); diff --git a/util/mention.js b/util/mention.js index 6101974..d0e098e 100644 --- a/util/mention.js +++ b/util/mention.js @@ -14,7 +14,7 @@ module.exports = async(message, msg, args, cmd, prefix, mention, client) => { client.misc.statusPings.get(message.guild.id).set(mention.id, new Date()); let m = await message.channel.send({embeds: [ new Discord.MessageEmbed() - .setAuthor(mention.tag, mention.avatarURL()) + .setAuthor({name: mention.tag, iconURL: mention.avatarURL()}) .setDescription(`That user ${tu.statustype === 'dnd' ? 'wishes not to be disturbed' : 'is AFK'}. Reason: ${tu.statusmsg}.${tu.statussetat ? `\n\n(This status was set ${moment(tu.statussetat.getTime()).fromNow()})` : ''}`) .setColor('c375f0') ] diff --git a/util/pagination.js b/util/pagination.js index f65e0d1..83322c9 100644 --- a/util/pagination.js +++ b/util/pagination.js @@ -32,7 +32,7 @@ class Pagination { } } await this.message.edit({ embeds: [this.pages[page] - .setFooter(`Natsuki | Page ${page + 1} of ${this.pages.length}`, this.client.user.avatarURL()) + .setFooter({ text: `Natsuki | Page ${page + 1} of ${this.pages.length}`, iconURL: this.client.user.avatarURL() }) .setTimestamp()] }); this.currentPage = page; @@ -118,7 +118,7 @@ class Pagination { this.controllers.collector.stop(); let fe = this.getCurrentPage(); fe.setDescription(`${fe.description}\n\n*This menu has ended, start a new one to interact with it!*`); - fe.setFooter(`Menu Ended${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}`, this.client.user.avatarURL()); + fe.setFooter({ text: `Menu Ended${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}`, iconURL: this.client.user.avatarURL() }); await this.message.edit({ embeds: [fe] }); clearInterval(this.timeoutInterval); return this; diff --git a/util/ts/pagination.ts b/util/ts/pagination.ts index 39262ec..d22968d 100644 --- a/util/ts/pagination.ts +++ b/util/ts/pagination.ts @@ -37,7 +37,7 @@ export class Pagination { } await this.message.edit({embeds: [this.pages[page] - .setFooter(`Natsuki | Page ${page + 1} of ${this.pages.length}`, this.client.user.avatarURL()) + .setFooter({text: `Natsuki | Page ${page + 1} of ${this.pages.length}`, iconURL: this.client.user.avatarURL()}) .setTimestamp()] }); this.currentPage = page; @@ -126,7 +126,7 @@ export class Pagination { let fe = this.getCurrentPage(); fe.setDescription(`${fe.description}\n\n*This menu has ended, start a new one to interact with it!*`); - fe.setFooter(`Menu Ended${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}`, this.client.user.avatarURL()); + fe.setFooter({text: `Menu Ended${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}`, iconURL: this.client.user.avatarURL()}); await this.message.edit({embeds: [fe]}); clearInterval(this.timeoutInterval);