Update rawDataTypes.d.ts
This commit is contained in:
parent
59f254966c
commit
af1f561cfd
77
typings/rawDataTypes.d.ts
vendored
77
typings/rawDataTypes.d.ts
vendored
@ -5,14 +5,12 @@ import {
|
|||||||
APIApplication,
|
APIApplication,
|
||||||
APIApplicationCommand,
|
APIApplicationCommand,
|
||||||
APIApplicationCommandInteraction,
|
APIApplicationCommandInteraction,
|
||||||
APIAttachment,
|
|
||||||
APIAuditLog,
|
APIAuditLog,
|
||||||
APIAuditLogEntry,
|
APIAuditLogEntry,
|
||||||
APIBan,
|
APIBan,
|
||||||
APIChannel,
|
APIChannel,
|
||||||
APIEmoji,
|
APIEmoji,
|
||||||
APIExtendedInvite,
|
APIExtendedInvite,
|
||||||
APIGuild,
|
|
||||||
APIGuildIntegration,
|
APIGuildIntegration,
|
||||||
APIGuildIntegrationApplication,
|
APIGuildIntegrationApplication,
|
||||||
APIGuildMember,
|
APIGuildMember,
|
||||||
@ -76,21 +74,26 @@ import {
|
|||||||
RESTPostAPIWebhookWithTokenJSONBody,
|
RESTPostAPIWebhookWithTokenJSONBody,
|
||||||
Snowflake,
|
Snowflake,
|
||||||
APIGuildScheduledEvent,
|
APIGuildScheduledEvent,
|
||||||
APIActionRowComponent,
|
|
||||||
APITextInputComponent,
|
APITextInputComponent,
|
||||||
APIModalActionRowComponent,
|
|
||||||
APIModalSubmitInteraction,
|
APIModalSubmitInteraction,
|
||||||
|
Permissions,
|
||||||
|
GuildDefaultMessageNotifications,
|
||||||
|
GuildExplicitContentFilter,
|
||||||
|
GuildMFALevel,
|
||||||
|
GuildSystemChannelFlags,
|
||||||
|
GuildPremiumTier,
|
||||||
|
GuildNSFWLevel,
|
||||||
|
GuildHubType,
|
||||||
|
GuildVerificationLevel,
|
||||||
|
GuildFeature,
|
||||||
LocalizationMap,
|
LocalizationMap,
|
||||||
} from 'discord-api-types/v9';
|
} from 'discord-api-types/v9';
|
||||||
import { GuildChannel, Guild, PermissionOverwrites, InteractionType } from '.';
|
import { GuildChannel, Guild, PermissionOverwrites } from '.';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
AutoModerationActionTypes,
|
AutoModerationActionTypes,
|
||||||
AutoModerationRuleEventTypes,
|
AutoModerationRuleEventTypes,
|
||||||
AutoModerationRuleKeywordPresetTypes,
|
AutoModerationRuleKeywordPresetTypes,
|
||||||
AutoModerationRuleTriggerTypes,
|
AutoModerationRuleTriggerTypes,
|
||||||
InteractionTypes,
|
|
||||||
MessageComponentTypes,
|
|
||||||
ApplicationRoleConnectionMetadataTypes,
|
ApplicationRoleConnectionMetadataTypes,
|
||||||
} from './enums';
|
} from './enums';
|
||||||
|
|
||||||
@ -170,7 +173,20 @@ export type RawInviteStageInstance = APIInviteStageInstance;
|
|||||||
export type RawMessageData = APIMessage;
|
export type RawMessageData = APIMessage;
|
||||||
export type RawPartialMessageData = GatewayMessageUpdateDispatchData;
|
export type RawPartialMessageData = GatewayMessageUpdateDispatchData;
|
||||||
|
|
||||||
export type RawMessageAttachmentData = APIAttachment;
|
export interface RawMessageAttachmentData {
|
||||||
|
id: Snowflake;
|
||||||
|
filename: string;
|
||||||
|
description?: string;
|
||||||
|
content_type?: string;
|
||||||
|
size: number;
|
||||||
|
url: string;
|
||||||
|
proxy_url: string;
|
||||||
|
height?: number | null;
|
||||||
|
width?: number | null;
|
||||||
|
ephemeral?: boolean;
|
||||||
|
duration_secs?: number;
|
||||||
|
waveform?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export type RawMessagePayloadData =
|
export type RawMessagePayloadData =
|
||||||
| RESTPostAPIChannelMessageJSONBody
|
| RESTPostAPIChannelMessageJSONBody
|
||||||
@ -271,6 +287,49 @@ export interface APIAutoModerationRuleTriggerMetadata {
|
|||||||
allow_list?: string[];
|
allow_list?: string[];
|
||||||
regex_patterns?: string[];
|
regex_patterns?: string[];
|
||||||
mention_total_limit?: number;
|
mention_total_limit?: number;
|
||||||
|
mention_raid_protection_enabled?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface APIGuild extends APIPartialGuild {
|
||||||
|
icon_hash?: string | null;
|
||||||
|
discovery_splash: string | null;
|
||||||
|
owner?: boolean;
|
||||||
|
owner_id: Snowflake;
|
||||||
|
permissions?: Permissions;
|
||||||
|
region: string;
|
||||||
|
afk_channel_id: Snowflake | null;
|
||||||
|
afk_timeout: number;
|
||||||
|
widget_enabled?: boolean;
|
||||||
|
widget_channel_id?: Snowflake | null;
|
||||||
|
verification_level: GuildVerificationLevel;
|
||||||
|
default_message_notifications: GuildDefaultMessageNotifications;
|
||||||
|
explicit_content_filter: GuildExplicitContentFilter;
|
||||||
|
roles: APIRole[];
|
||||||
|
emojis: APIEmoji[];
|
||||||
|
features: GuildFeature[];
|
||||||
|
mfa_level: GuildMFALevel;
|
||||||
|
application_id: Snowflake | null;
|
||||||
|
system_channel_id: Snowflake | null;
|
||||||
|
system_channel_flags: GuildSystemChannelFlags;
|
||||||
|
rules_channel_id: Snowflake | null;
|
||||||
|
max_presences?: number | null;
|
||||||
|
max_members?: number;
|
||||||
|
vanity_url_code: string | null;
|
||||||
|
description: string | null;
|
||||||
|
banner: string | null;
|
||||||
|
premium_tier: GuildPremiumTier;
|
||||||
|
premium_subscription_count?: number;
|
||||||
|
preferred_locale: string;
|
||||||
|
public_updates_channel_id: Snowflake | null;
|
||||||
|
max_video_channel_users?: number;
|
||||||
|
approximate_member_count?: number;
|
||||||
|
approximate_presence_count?: number;
|
||||||
|
welcome_screen?: APIGuildWelcomeScreen;
|
||||||
|
nsfw_level: GuildNSFWLevel;
|
||||||
|
stickers: APISticker[];
|
||||||
|
premium_progress_bar_enabled: boolean;
|
||||||
|
hub_type: GuildHubType | null;
|
||||||
|
safety_alerts_channel_id: Snowflake | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface APIApplicationRoleConnectionMetadata {
|
export interface APIApplicationRoleConnectionMetadata {
|
||||||
|
Loading…
Reference in New Issue
Block a user