Added dprint and formatted file to it

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-09-06 22:57:15 +02:00
parent 55e1cf7cdf
commit f389209e21
106 changed files with 398 additions and 395 deletions

View File

@@ -1,8 +1,8 @@
import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js"
import fs from "fs"
import { ICommand } from "interfaces"
import { ExtendedClient } from "./Client.js"
import env from "./Env.js"
import { ICommand } from "interfaces"
import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js"
import color from "./functions/colors.js"
type FileType = "js" | "ts"
@@ -36,10 +36,10 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
return {
name: option.name,
description: option.description,
type: option.type,
type: option.type
}
}),
defaultPermission: command.default_member_permissions ?? null,
defaultPermission: command.default_member_permissions ?? null
}
}).sort((a, b) => a.name > b.name ? 1 : -1)
@@ -56,10 +56,10 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
return {
name: option.name,
description: option.description,
type: option.type,
type: option.type
}
}),
defaultPermission: command.defaultMemberPermissions,
defaultPermission: command.defaultMemberPermissions
}
}).sort((a, b) => a.name > b.name ? 1 : -1)
@@ -108,7 +108,6 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
}
}
console.log(color("-------------", "lavender"))
console.log(color(nc, "lavender"))
}