Skip to content

Commit

Permalink
added missing type defs (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
gumuz authored Jan 13, 2021
1 parent 721162c commit 9c3067f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ export type MessageResponse<
export type MuteResponse<UserType = UnknownType> = {
user: UserResponse<UserType>;
created_at?: string;
expires?: string;
target?: UserResponse<UserType>;
updated_at?: string;
};
Expand Down Expand Up @@ -705,6 +706,8 @@ export type ListCommandsResponse<
export type CreateChannelOptions<CommandType extends string = LiteralStringForUnion> = {
automod?: ChannelConfigAutomod;
automod_behavior?: ChannelConfigAutomodBehavior;
automod_thresholds?: ChannelConfigAutomodThresholds;
blocklist?: string;
blocklist_behavior?: ChannelConfigAutomodBehavior;
client_id?: string;
commands?: CommandVariants<CommandType>[];
Expand Down Expand Up @@ -1257,6 +1260,7 @@ export type AppSettings = {
notification_template?: string;
server_key?: string;
};
image_moderation_enabled?: boolean;
push_config?: {
version?: string;
};
Expand Down Expand Up @@ -1310,6 +1314,12 @@ export type ChannelConfigAutomod = '' | 'AI' | 'disabled' | 'simple';

export type ChannelConfigAutomodBehavior = '' | 'block' | 'flag';

export type ChannelConfigAutomodThresholds = null | {
explicit?: { block?: number; flag?: number };
spam?: { block?: number; flag?: number };
toxic?: { block?: number; flag?: number };
};

export type ChannelConfigFields = {
automod?: ChannelConfigAutomod;
automod_behavior?: ChannelConfigAutomodBehavior;
Expand Down

0 comments on commit 9c3067f

Please sign in to comment.