hotfix deprecated setcolors
This commit is contained in:
8 files changed
+15
-15
No files matched your search
+4
-4
@@ -246,7 +246,7 @@ module.exports = {
|
|||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.setTitle('Bank Notice:')
|
||||||
.setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` to view your balance`)
|
.setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` to view your balance`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@ module.exports = {
|
|||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.setTitle('Bank Notice:')
|
||||||
.setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` or \`/inventory wallet\` to view your cash balance`)
|
.setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` or \`/inventory wallet\` to view your cash balance`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -522,7 +522,7 @@ module.exports = {
|
|||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Success')
|
.setTitle('Success')
|
||||||
.setDescription(`Successfully gave <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
.setDescription(`Successfully gave <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -594,7 +594,7 @@ module.exports = {
|
|||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.setTitle('Bank Notice:')
|
||||||
.setDescription(`Successfully transfered <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
.setDescription(`Successfully transfered <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -118,7 +118,7 @@ module.exports = {
|
|||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Bank Notice:')
|
.setTitle('Bank Notice:')
|
||||||
.setDescription(`Successfully fined <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
.setDescription(`Successfully fined <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully ${args[0] == 'add' ? 'added' : 'removed'} $${args[0].options[1].value.toFixed(2)} ${args[0] == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`)
|
.setDescription(`Successfully ${args[0] == 'add' ? 'added' : 'removed'} $${args[0].options[1].value.toFixed(2)} ${args[0] == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -687,7 +687,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully ${perform} <@&${roleId}>'s income to $${args[0].options[0].options[1].value}`)
|
.setDescription(`Successfully ${perform} <@&${roleId}>'s income to $${args[0].options[0].options[1].value}`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -737,7 +737,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully set <@&${roleId}> as commercial role.\nUsers with this role can now use business commands.`)
|
.setDescription(`Successfully set <@&${roleId}> as commercial role.\nUsers with this role can now use business commands.`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -779,7 +779,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully set <@&${roleId}> as officer role.\nUsers with this role can now fine other users.`)
|
.setDescription(`Successfully set <@&${roleId}> as officer role.\nUsers with this role can now fine other users.`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -821,7 +821,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully set <@&${roleId}> as dispatcher role.\nUsers with this role can now receive 911/311 notifications.`)
|
.setDescription(`Successfully set <@&${roleId}> as dispatcher role.\nUsers with this role can now receive 911/311 notifications.`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
@@ -864,7 +864,7 @@ module.exports = {
|
|||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
const successEmbed = new EmbedBuilder()
|
||||||
.setDescription(`Successfully set <@&${roleId}> as a bot admin role.\nUsers with this role can use restricted commands.`)
|
.setDescription(`Successfully set <@&${roleId}> as a bot admin role.\nUsers with this role can use restricted commands.`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -168,7 +168,7 @@ module.exports = {
|
|||||||
let successEmbed = new EmbedBuilder()
|
let successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Success')
|
.setTitle('Success')
|
||||||
.setDescription(`Successfully set ${updateAction}\nUse \`/inventory wallet\` to view your updated ID`)
|
.setDescription(`Successfully set ${updateAction}\nUse \`/inventory wallet\` to view your updated ID`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (!hasWorkRole) {
|
if (!hasWorkRole) {
|
||||||
const error = new EmbedBuilder()
|
const error = new EmbedBuilder()
|
||||||
.setColor('RED')
|
.setColor(client.config.Colors.Red)
|
||||||
.setTitle('Missing Work!')
|
.setTitle('Missing Work!')
|
||||||
.setDescription(`It appears you don't have any work, apply for some jobs to earn your income.`)
|
.setDescription(`It appears you don't have any work, apply for some jobs to earn your income.`)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ require('dotenv').config();
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Dev: "PROD.",
|
Dev: "PROD.",
|
||||||
Version: "12.7.3",
|
Version: "12.7.4",
|
||||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||||
DefaultPrefix: "?",
|
DefaultPrefix: "?",
|
||||||
ServerID: "955668596745461830",
|
ServerID: "955668596745461830",
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ module.exports = async (client, interaction) => {
|
|||||||
let successEmbed = new EmbedBuilder()
|
let successEmbed = new EmbedBuilder()
|
||||||
.setTitle('Success')
|
.setTitle('Success')
|
||||||
.setDescription(`Successfully gave <@${targetUserID}> ${item.name}`)
|
.setDescription(`Successfully gave <@${targetUserID}> ${item.name}`)
|
||||||
.setColor('GREEN');
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.update({ embeds: [successEmbed], components: [] });
|
return interaction.update({ embeds: [successEmbed], components: [] });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user