Skip to content

Commit

Permalink
update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jan 13, 2024
1 parent ff89b28 commit f3e32e3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 22 deletions.
8 changes: 5 additions & 3 deletions commands/developer/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ module.exports = {
if (!commit || failedPushes.length)
embed.setDescription("*Check developer logs for potential failure reasons!*");

return interaction.editReply({
embeds: [embed],
}).then(addDeleteButton);
return interaction
.editReply({
embeds: [embed],
})
.then(addDeleteButton);
},
};
31 changes: 20 additions & 11 deletions commands/developer/shutdown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const settings = require("@resources/settings.json");
const strings = require("@resources/strings.json");

const addDeleteButton = require("@helpers/addDeleteButton");

const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require("discord.js");

/** @type {import("@helpers/jsdoc").Command} */
Expand All @@ -12,20 +14,27 @@ module.exports = {
.setDMPermission(false),
async execute(interaction) {
if (process.env.DEVELOPERS.includes(interaction.user.id)) {
await interaction.reply({
embeds: [new EmbedBuilder().setTitle("Shutting down...").setColor(settings.colors.blue)],
});

return process.exit();
return interaction
.reply({
embeds: [
new EmbedBuilder()
.setAuthor({
name: "Member banned",
iconURL:
"https://raw.githubusercontent.com/Faithful-Resource-Pack/Branding/main/role%20icons/5%20-%20Moderator.png",
})
.setDescription(`<@${interaction.user.id}> has been banned`)
.addFields({ name: "Reason", value: "trying to stop me lmao" })
.setColor(settings.colors.red),
],
fetchReply: true,
})
.then(addDeleteButton);
}

await interaction.reply({
embeds: [
new EmbedBuilder()
.setDescription(`<@${interaction.user.id}> has been banned`)
.addFields({ name: "Reason", value: "trying to stop me lmao" })
.setColor(settings.colors.red),
],
embeds: [new EmbedBuilder().setTitle("Shutting down...").setColor(settings.colors.blue)],
});
return process.exit();
},
};
4 changes: 1 addition & 3 deletions commands/submission/channelpush.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ module.exports = {
.setRequired(true),
)
.addIntegerOption((option) =>
option
.setName("delay")
.setDescription("Manually override the pack submission delay.")
option.setName("delay").setDescription("Manually override the pack submission delay."),
)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"nodemon": "^3.0.2",
"prettier": "^3.1.1"
"prettier": "^3.2.1"
},
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f3e32e3

Please sign in to comment.