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: [],
|
member: [],
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: "user",
|
name: "user",
|
||||||
description: "Discord Username",
|
description: "Discord Username",
|
||||||
value: "user",
|
value: "user",
|
||||||
type: 6,
|
type: 6,
|
||||||
required: false,
|
required: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
SlashCommand: {
|
SlashCommand: {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ module.exports = {
|
|||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
.setTitle(`**${results.firearms[i].firearm.serialNumber} | ${results.firearms[i]._id}**`)
|
.setTitle(`**${results.firearms[i].firearm.serialNumber} | ${results.firearms[i]._id}**`)
|
||||||
.setURL('https://discord.gg/jgUW656v2t')
|
.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')
|
.setDescription('Firearm Search Results')
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `**Serial Number**`, value: `\`${results.firearms[i].firearm.serialNumber}\``, inline: true },
|
{ 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 }) => {
|
run: async (client, interaction, args, { GuildDB }) => {
|
||||||
|
console.log(args)
|
||||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
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.` });
|
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()
|
let embed = new EmbedBuilder()
|
||||||
.setAuthor(`Command: ${cmd.name}`, client.config.IconURL)
|
.setAuthor({ name: `Command: ${cmd.name}`, iconURL: client.config.IconURL })
|
||||||
.setDescription(cmd.description)
|
.setDescription(cmd.description)
|
||||||
.setColor("GREEN")
|
.setColor("GREEN")
|
||||||
.addFields({
|
.addFields({
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ module.exports = {
|
|||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
||||||
.setURL('https://discord.gg/jgUW656v2t')
|
.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')
|
.setDescription('Name Search Results')
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module.exports = {
|
|||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
.setTitle(`**${results.vehicles[i].vehicle.plate} | ${results.vehicles[i]._id}**`)
|
.setTitle(`**${results.vehicles[i].vehicle.plate} | ${results.vehicles[i]._id}**`)
|
||||||
.setURL('https://discord.gg/jgUW656v2t')
|
.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')
|
.setDescription('Plate Search Results')
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `**Plate #**`, value: `\`${results.vehicles[i].vehicle.plate}\``, inline: true },
|
{ name: `**Plate #**`, value: `\`${results.vehicles[i].vehicle.plate}\``, inline: true },
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ module.exports = {
|
|||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
.setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`)
|
||||||
.setURL('https://discord.gg/jgUW656v2t')
|
.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')
|
.setDescription('Name Search Results')
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
{ name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },
|
||||||
|
|||||||
Reference in new issue
Block a user