fix setAuthor deprecation?
This commit is contained in:
6 files changed
+14
-13
No files matched your search
@@ -9,14 +9,14 @@ module.exports = {
|
||||
member: [],
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: "user",
|
||||
description: "Discord Username",
|
||||
value: "user",
|
||||
type: 6,
|
||||
required: false,
|
||||
},
|
||||
],
|
||||
{
|
||||
name: "user",
|
||||
description: "Discord Username",
|
||||
value: "user",
|
||||
type: 6,
|
||||
required: false,
|
||||
},
|
||||
],
|
||||
SlashCommand: {
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -56,7 +56,7 @@ module.exports = {
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`**${results.firearms[i].firearm.serialNumber} | ${results.firearms[i]._id}**`)
|
||||
.setURL('https://discord.gg/jgUW656v2t')
|
||||
.setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
||||
.setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' })
|
||||
.setDescription('Firearm Search Results')
|
||||
.addFields(
|
||||
{ name: `**Serial Number**`, value: `\`${results.firearms[i].firearm.serialNumber}\``, inline: true },
|
||||
|
||||
+2
-1
@@ -27,6 +27,7 @@ module.exports = {
|
||||
*/
|
||||
|
||||
run: async (client, interaction, args, { GuildDB }) => {
|
||||
console.log(args)
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
|
||||
}
|
||||
@@ -56,7 +57,7 @@ module.exports = {
|
||||
);
|
||||
|
||||
let embed = new EmbedBuilder()
|
||||
.setAuthor(`Command: ${cmd.name}`, client.config.IconURL)
|
||||
.setAuthor({ name: `Command: ${cmd.name}`, iconURL: client.config.IconURL })
|
||||
.setDescription(cmd.description)
|
||||
.setColor("GREEN")
|
||||
.addFields({
|
||||
|
||||
@@ -86,7 +86,7 @@ module.exports = {
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
||||
.setURL('https://discord.gg/jgUW656v2t')
|
||||
.setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
||||
.setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' })
|
||||
.setDescription('Name Search Results')
|
||||
.addFields(
|
||||
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
||||
|
||||
@@ -57,7 +57,7 @@ module.exports = {
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`**${results.vehicles[i].vehicle.plate} | ${results.vehicles[i]._id}**`)
|
||||
.setURL('https://discord.gg/jgUW656v2t')
|
||||
.setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
||||
.setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' })
|
||||
.setDescription('Plate Search Results')
|
||||
.addFields(
|
||||
{ name: `**Plate #**`, value: `\`${results.vehicles[i].vehicle.plate}\``, inline: true },
|
||||
|
||||
@@ -82,7 +82,7 @@ module.exports = {
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
||||
.setURL('https://discord.gg/jgUW656v2t')
|
||||
.setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t')
|
||||
.setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' })
|
||||
.setDescription('Name Search Results')
|
||||
.addFields(
|
||||
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
||||
|
||||
Reference in new issue
Block a user