Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
chore(deps-dev): bump prettier from 3.0.3 to 3.1.0 (#1267)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ImRodry committed Nov 22, 2023
1 parent a3322e9 commit 32ceb55
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"rimraf": "^5.0.5"
}
}
12 changes: 6 additions & 6 deletions src/commands/Staff/punishment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ const command: Command = {
punish.type === "VERBAL"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 1)
: punish.type === "WARN"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
embed.addFields({
name: `Case ${punish.case}: ${
punish.endTimestamp ? (punish.duration ? `${punish.duration}${punish.type === "BAN" ? "d" : "h"} ` : "permanent ") : ""
Expand Down Expand Up @@ -609,8 +609,8 @@ const command: Command = {
punish.type === "VERBAL"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 1)
: punish.type === "WARN"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
embed.addFields({
name: `Case ${punish.case}: ${
punish.endTimestamp ? (punish.duration ? `${punish.duration}${punish.type === "BAN" ? "d" : "h"} ` : "permanent ") : ""
Expand Down Expand Up @@ -647,8 +647,8 @@ const command: Command = {
punish.type === "VERBAL"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 1)
: punish.type === "WARN"
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
? new Date(punish.timestamp).setDate(new Date(punish.timestamp).getDate() + 7)
: new Date(punish.endTimestamp!).setDate(new Date(punish.endTimestamp!).getDate() + 30)
confirmEmbed.addFields({
name: `Case ${punish.case}: ${
punish.endTimestamp ? (punish.duration ? `${punish.duration}${punish.type === "BAN" ? "d" : "h"} ` : "permanent ") : ""
Expand Down
12 changes: 6 additions & 6 deletions src/lib/crowdinverify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ export async function crowdinVerify(member: GuildMember, url?: string | null, se
const highestRole = ["owner", "manager"].includes(project.user_role)
? "Manager"
: project.contributed_languages?.some(l => l.user_role.name === "Proofreader")
? "Proofreader"
: "Translator",
? "Proofreader"
: "Translator",
projectHighestHole = member.guild.roles.cache.find(r => r.name === `${projectName} ${highestRole}`)
if (projectHighestHole) allProjectRoles.push(projectHighestHole)
else console.error(`Couldn't find the ${highestRole} role for the ${projectName} project`)
Expand Down Expand Up @@ -338,10 +338,10 @@ export async function crowdinVerify(member: GuildMember, url?: string | null, se
? // Place veteran roles at the end
b.name.localeCompare(a.name)
: !isProjectRole(a) && !isProjectRole(b)
? // Sort language roles be their position
b.position - a.position
: // Place Hypixel project roles first
a.color - b.color
? // Sort language roles be their position
b.position - a.position
: // Place Hypixel project roles first
a.color - b.color
)) {
const project = isProjectRole(role) ? (role.name.split(" ")[0] as ValidProjects) : "Hypixel"
rolesPerProject[project] ??= []
Expand Down
4 changes: 2 additions & 2 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ export function createModlogEmbed(embedData: EmbedData, modlog: PunishmentLog, m
modlog.type === "VERBAL"
? new Date(modlog.timestamp).setDate(new Date(modlog.timestamp).getDate() + 1)
: modlog.type === "WARN"
? new Date(modlog.timestamp).setDate(new Date(modlog.timestamp).getDate() + 7)
: new Date(modlog.endTimestamp ?? modlog.timestamp).setDate(new Date(modlog.endTimestamp ?? modlog.timestamp).getDate() + 30)
? new Date(modlog.timestamp).setDate(new Date(modlog.timestamp).getDate() + 7)
: new Date(modlog.endTimestamp ?? modlog.timestamp).setDate(new Date(modlog.endTimestamp ?? modlog.timestamp).getDate() + 30)
if (typeof modlog.duration === "number") {
embedData.fields = [
{ name: "Moderator", value: `<@!${modlog.moderator}>`, inline: true },
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2088,10 +2088,10 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==

prettier@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
prettier@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e"
integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==

progress@2.0.3:
version "2.0.3"
Expand Down

0 comments on commit 32ceb55

Please sign in to comment.