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()
|
||||
.setTitle('Bank Notice:')
|
||||
.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] });
|
||||
|
||||
@@ -287,7 +287,7 @@ module.exports = {
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.setTitle('Bank Notice:')
|
||||
.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] });
|
||||
|
||||
@@ -522,7 +522,7 @@ module.exports = {
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.setTitle('Success')
|
||||
.setDescription(`Successfully gave <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||
.setColor('GREEN');
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successEmbed] });
|
||||
|
||||
@@ -594,7 +594,7 @@ module.exports = {
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.setTitle('Bank Notice:')
|
||||
.setDescription(`Successfully transfered <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||
.setColor('GREEN');
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successEmbed] });
|
||||
}
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@ module.exports = {
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.setTitle('Bank Notice:')
|
||||
.setDescription(`Successfully fined <@${targetUserID}> $${args[0].options[1].value.toFixed(2)}`)
|
||||
.setColor('GREEN');
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successEmbed] });
|
||||
},
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@ module.exports = {
|
||||
|
||||
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`)
|
||||
.setColor('GREEN');
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successEmbed] });
|
||||
},
|
||||
|
||||
@@ -687,7 +687,7 @@ module.exports = {
|
||||
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.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] });
|
||||
|
||||
@@ -737,7 +737,7 @@ module.exports = {
|
||||
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.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] });
|
||||
|
||||
@@ -779,7 +779,7 @@ module.exports = {
|
||||
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.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] });
|
||||
|
||||
@@ -821,7 +821,7 @@ module.exports = {
|
||||
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.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] });
|
||||
|
||||
@@ -864,7 +864,7 @@ module.exports = {
|
||||
|
||||
const successEmbed = new EmbedBuilder()
|
||||
.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] });
|
||||
|
||||
|
||||
+1
-1
@@ -168,7 +168,7 @@ module.exports = {
|
||||
let successEmbed = new EmbedBuilder()
|
||||
.setTitle('Success')
|
||||
.setDescription(`Successfully set ${updateAction}\nUse \`/inventory wallet\` to view your updated ID`)
|
||||
.setColor('GREEN');
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successEmbed] });
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ module.exports = {
|
||||
|
||||
if (!hasWorkRole) {
|
||||
const error = new EmbedBuilder()
|
||||
.setColor('RED')
|
||||
.setColor(client.config.Colors.Red)
|
||||
.setTitle('Missing Work!')
|
||||
.setDescription(`It appears you don't have any work, apply for some jobs to earn your income.`)
|
||||
|
||||
|
||||
Reference in new issue
Block a user