-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare const VERSION = "0.2.11"; | ||
export declare const VERSION = "0.2.12"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
export type DiscordRouterParams = { | ||
app_permissions: string; | ||
application_id: string; | ||
channel: Channel; | ||
channel_id: string; | ||
data: CommandData | ActionData; | ||
entitlement_sku_ids: string[]; | ||
entitlements: any[]; | ||
guild: Guild; | ||
guild_id: string; | ||
guild_locale: string; | ||
id: string; | ||
locale: string; | ||
member: Member; | ||
token: string; | ||
type: number; | ||
version: number; | ||
}; | ||
export type Channel = { | ||
flags: number; | ||
guild_id: string; | ||
id: string; | ||
last_message_id: string; | ||
name: string; | ||
nsfw: boolean; | ||
parent_id: string; | ||
permissions: string; | ||
position: number; | ||
rate_limit_per_user: number; | ||
topic: string | null; | ||
type: number; | ||
}; | ||
export type CommandData = { | ||
guild_id: string; | ||
id: string; | ||
name: string; | ||
options: CommandOption[]; | ||
type: number; | ||
}; | ||
export type ActionData = { | ||
component_type: number; | ||
custom_id: string; | ||
}; | ||
export type CommandOption = { | ||
name: string; | ||
value: string; | ||
}; | ||
export type Guild = { | ||
features: string[]; | ||
id: string; | ||
locale: string; | ||
}; | ||
export type Author = { | ||
avatar: string; | ||
avatar_decoration_data: any | null; | ||
bot: boolean; | ||
discriminator: string; | ||
global_name: string | null; | ||
id: string; | ||
premium_type: number; | ||
public_flags: number; | ||
username: string; | ||
}; | ||
export type Message = { | ||
attachments: any[]; | ||
author: Author; | ||
channel_id: string; | ||
components: any[]; | ||
content: string; | ||
edited_timestamp: string | null; | ||
embeds: any[]; | ||
flags: number; | ||
id: string; | ||
mention_everyone: boolean; | ||
mention_roles: string[]; | ||
mentions: any[]; | ||
pinned: boolean; | ||
timestamp: string; | ||
tts: boolean; | ||
type: number; | ||
}; | ||
export type Member = { | ||
avatar: string | null; | ||
communication_disabled_until: string | null; | ||
deaf: boolean; | ||
flags: number; | ||
joined_at: string; | ||
mute: boolean; | ||
nick: string | null; | ||
pending: boolean; | ||
permissions: string; | ||
premium_since: string | null; | ||
roles: string[]; | ||
unusual_dm_activity_until: string | null; | ||
user: User; | ||
}; | ||
export type User = { | ||
avatar: string; | ||
avatar_decoration_data: any | null; | ||
discriminator: string; | ||
global_name: string; | ||
id: string; | ||
public_flags: number; | ||
username: string; | ||
}; |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = '0.2.11' | ||
export const VERSION = '0.2.12' |