13.0.2 revise ignore to dismiss invoice

This commit is contained in:
SowinskiBraeden committed 2022-10-16 19:50:51 -07:00
1 parent e8d187c578
commit a329779761
5 files changed
+12 -12

No files matched your search

+6 -6
View File
@@ -353,9 +353,9 @@ module.exports = {
}]
},
{
name: "can_ignore_invoices",
description: "Allow users to ignore and delete invoices",
value: "can_ignore_invoices",
name: "can_dismiss_invoices",
description: "Allow users to dismiss and delete invoices",
value: "can_dismiss_invoices",
type: 1,
options: [{
name: "true_or_false",
@@ -868,8 +868,8 @@ module.exports = {
return interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
} else if (args[0].name == 'can_ignore_invoices') {
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID}, {$set: {"server.canIgnoreInvoices": args[0].options[0].value}}, function(err, res) {
} else if (args[0].name == 'can_dismiss_invoices') {
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID}, {$set: {"server.canDismissInvoices": args[0].options[0].value}}, function(err, res) {
if (err) return client.sendInternalError(interaction, err);
});
@@ -920,7 +920,7 @@ module.exports = {
{ name: 'Has Disptach Role?', value: `\`\`\`diff\n${dispatchRoleColor}${client.exists(GuildDB.dispatcherRole)}\`\`\`${dispatchRole}`, inline: true },
{ name: 'Has Dispatch Channel?', value: `\`\`\`diff\n${dispatchChannelColor}${client.exists(GuildDB.dispatchChannel)}\`\`\`${dispatchChannel}`, inline: true },
{ name: 'Has bot admin role?', value: `\`\`\`diff\n${botAdminRoleColor}${client.exists(GuildDB.botAdmin)}\`\`\`${botAdminRole}`, inline: true },
{ name: 'Can Ignore Invoices?', value: `\`\`\`diff\n${GuildDB.canIgnoreInvoices ? '+ ' : '- '}${GuildDB.canIgnoreInvoices}\`\`\``, inline: true },
{ name: 'Can Dismiss Invoices?', value: `\`\`\`diff\n${GuildDB.canDismissInvoices ? '+ ' : '- '}${GuildDB.canDismissInvoices}\`\`\``, inline: true },
);
return interaction.send({ embeds: [settingsEmbed] });