Skip to content

Commit 4ba59c3

Browse files
committed
chore(*): formatting
1 parent 4269150 commit 4ba59c3

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

src/deployFunctions/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function deploy(data: any, dev = false) {
3535
PrerepeaseApplicationCommandContextType.PrivateChannel,
3636
PrerepeaseApplicationCommandContextType.BotDm,
3737
],
38-
})),
38+
})),
3939
),
4040
}).then(async (response) => response.json());
4141
logger.info(res as string);

src/functions/modals/testTagModalSubmit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export async function testTagModalSubmit(res: Response, message: APIModalSubmitI
107107
color: hasErrors
108108
? VALIDATION_FAIL_COLOR
109109
: hasWarnings
110-
? VALIDATION_WARNING_COLOR
111-
: VALIDATION_SUCCESS_COLOR,
110+
? VALIDATION_WARNING_COLOR
111+
: VALIDATION_SUCCESS_COLOR,
112112
description: [
113113
`**Name:** \`${parsedTag.name}\``,
114114
`**Keywords:** ${parsedTag.body.keywords.map((key) => `\`${key}\``).join(', ')}`,
@@ -124,7 +124,7 @@ export async function testTagModalSubmit(res: Response, message: APIModalSubmitI
124124
type: ComponentType.ActionRow,
125125
components: buttons,
126126
},
127-
]
127+
]
128128
: [],
129129
},
130130
},

src/util/argumentsOf.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
4141
type TypeIdToType<T, O, C> = T extends ApplicationCommandOptionType.Subcommand
4242
? ArgumentsOfRaw<O>
4343
: T extends ApplicationCommandOptionType.SubcommandGroup
44-
? ArgumentsOfRaw<O>
45-
: T extends ApplicationCommandOptionType.String
46-
? C extends readonly { value: string }[]
47-
? C[number]['value']
48-
: string
49-
: T extends ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number
50-
? C extends readonly { value: number }[]
51-
? C[number]['value']
52-
: number
53-
: T extends ApplicationCommandOptionType.Boolean
54-
? boolean
55-
: T extends ApplicationCommandOptionType.User
56-
? string
57-
: T extends ApplicationCommandOptionType.Channel
58-
? string
59-
: T extends ApplicationCommandOptionType.Role
60-
? string
61-
: T extends ApplicationCommandOptionType.Mentionable
62-
? string
63-
: never;
44+
? ArgumentsOfRaw<O>
45+
: T extends ApplicationCommandOptionType.String
46+
? C extends readonly { value: string }[]
47+
? C[number]['value']
48+
: string
49+
: T extends ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number
50+
? C extends readonly { value: number }[]
51+
? C[number]['value']
52+
: number
53+
: T extends ApplicationCommandOptionType.Boolean
54+
? boolean
55+
: T extends ApplicationCommandOptionType.User
56+
? string
57+
: T extends ApplicationCommandOptionType.Channel
58+
? string
59+
: T extends ApplicationCommandOptionType.Role
60+
? string
61+
: T extends ApplicationCommandOptionType.Mentionable
62+
? string
63+
: never;
6464

6565
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6666
type OptionToObject<O> = O extends {
@@ -74,8 +74,8 @@ type OptionToObject<O> = O extends {
7474
? R extends true
7575
? { [k in K]: TypeIdToType<T, O, C> }
7676
: T extends ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup
77-
? { [k in K]: TypeIdToType<T, O, C> }
78-
: { [k in K]?: TypeIdToType<T, O, C> }
77+
? { [k in K]: TypeIdToType<T, O, C> }
78+
: { [k in K]?: TypeIdToType<T, O, C> }
7979
: never
8080
: never;
8181

tags/tags.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,4 +1218,3 @@ Bots cannot send messages in partial group dm channels.
12181218
Use `if ('send' in channel)` or compare `channel.type` to mitigate this.
12191219
A fix will be implemented in 14.16.2, where you can use `channel.isSendable()`
12201220
"""
1221-

0 commit comments

Comments
 (0)