mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
chore: run prettier
This commit is contained in:
parent
77ab2718e7
commit
873bf7eb99
54 changed files with 462 additions and 416 deletions
|
@ -9,14 +9,16 @@ import { CustomEventsPluginType, TCustomEvent } from "../types";
|
|||
export const zSetChannelPermissionOverridesAction = z.strictObject({
|
||||
type: z.literal("set_channel_permission_overrides"),
|
||||
channel: zSnowflake,
|
||||
overrides: z.array(
|
||||
z.strictObject({
|
||||
type: z.union([z.literal("member"), z.literal("role")]),
|
||||
id: zSnowflake,
|
||||
allow: z.number(),
|
||||
deny: z.number(),
|
||||
}),
|
||||
).max(15),
|
||||
overrides: z
|
||||
.array(
|
||||
z.strictObject({
|
||||
type: z.union([z.literal("member"), z.literal("role")]),
|
||||
id: zSnowflake,
|
||||
allow: z.number(),
|
||||
deny: z.number(),
|
||||
}),
|
||||
)
|
||||
.max(15),
|
||||
});
|
||||
export type TSetChannelPermissionOverridesAction = z.infer<typeof zSetChannelPermissionOverridesAction>;
|
||||
|
||||
|
|
|
@ -36,11 +36,7 @@ export const zCustomEvent = z.strictObject({
|
|||
export type TCustomEvent = z.infer<typeof zCustomEvent>;
|
||||
|
||||
export const zCustomEventsConfig = z.strictObject({
|
||||
events: zBoundedRecord(
|
||||
z.record(zBoundedCharacters(0, 100), zCustomEvent),
|
||||
0,
|
||||
100,
|
||||
),
|
||||
events: zBoundedRecord(z.record(zBoundedCharacters(0, 100), zCustomEvent), 0, 100),
|
||||
});
|
||||
|
||||
export interface CustomEventsPluginType extends BasePluginType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue