fix: broken import errors (#779)

* fix: broken import errors

* fix: snake case name
This commit is contained in:
Skillz4Killz
2021-04-08 14:22:11 -04:00
committed by GitHub
parent d8e12e7f8a
commit 3eaf1a5dcc
119 changed files with 355 additions and 398 deletions

View File

@@ -77,5 +77,5 @@ export interface User {
premiumType?: number;
}
export type DiscordUser = SnakeCaseProps<DiscordUserInternal>;
export type DiscordUser = SnakeCasedPropertiesDeep<DiscordUserInternal>;
```

View File

@@ -1,7 +1,7 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts";
import { DiscordGuildIntegrationsUpdate } from "../../types/guilds/guild_integrations_update.ts";
import { DiscordGuildIntegrationsUpdate } from "../../types/integration/guild_integrations_update.ts";
export async function handleGuildIntegrationsUpdate(
data: DiscordGatewayPayload,

View File

@@ -2,7 +2,6 @@ import { cacheHandlers } from "../../cache.ts";
import { rest } from "../../rest/rest.ts";
import { structures } from "../../structures/mod.ts";
import { DiscordChannelTypes } from "../../types/channels/channel_types.ts";
import { DiscordenoCreateMessage } from "../../types/discordeno/create_message.ts";
import { DiscordAllowedMentionsTypes } from "../../types/messages/allowed_mentions_types.ts";
import { DiscordMessage } from "../../types/messages/message.ts";
import { Errors } from "../../types/misc/errors.ts";

View File

@@ -9,7 +9,6 @@ import { removeAllReactions } from "../helpers/messages/remove_all_reactions.ts"
import { removeReaction } from "../helpers/messages/remove_reaction.ts";
import { removeReactionEmoji } from "../helpers/messages/remove_reaction_emoji.ts";
import { sendMessage } from "../helpers/messages/send_message.ts";
import { DiscordenoCreateMessage } from "../types/discordeno/create_message.ts";
import { GuildMember } from "../types/guilds/guild_member.ts";
import { EditMessage } from "../types/messages/edit_message.ts";
import { DiscordMessage, Message } from "../types/messages/message.ts";

View File

@@ -1,6 +1,6 @@
import { Integration } from "../guilds/integration.ts";
import { Integration } from "../integration/integration.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Webhook } from "../webhooks/webhook.ts";
import { AuditLogEntry } from "./audit_log_entry.ts";
@@ -16,4 +16,4 @@ export interface AuditLog {
}
/** https://discord.com/developers/docs/resources/audit-log#audit-log-object */
export type DiscordAuditLog = SnakeCaseProps<AuditLog>;
export type DiscordAuditLog = SnakeCasedPropertiesDeep<AuditLog>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { AuditLogChangeValue } from "./audit_log_change_value.ts";
export interface AuditLogChange {
@@ -11,4 +11,4 @@ export interface AuditLogChange {
}
/** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */
export type DiscordAuditLogChange = SnakeCaseProps<AuditLogChange>;
export type DiscordAuditLogChange = SnakeCasedPropertiesDeep<AuditLogChange>;

View File

@@ -1,88 +1,88 @@
import { Overwrite } from "../channels/overwrite.ts";
import { Role } from "../permissions/role.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export type AuditLogChangeValue =
| {
newValue: string;
oldValue: string;
key:
| "name"
| "description"
| "discovery_splash_hash"
| "banner_hash"
| "preferred_locale"
| "rules_channel_id"
| "public_updates_channel_id"
| "icon_hash"
| "splash_hash"
| "owner_id"
| "region"
| "afk_channel_id"
| "vanity_url_code"
| "widget_channel_id"
| "system_channel_id"
| "topic"
| "application_id"
| "permissions"
| "allow"
| "deny"
| "code"
| "channel_id"
| "inviter_id"
| "nick"
| "avatar_hash"
| "id";
}
newValue: string;
oldValue: string;
key:
| "name"
| "description"
| "discovery_splash_hash"
| "banner_hash"
| "preferred_locale"
| "rules_channel_id"
| "public_updates_channel_id"
| "icon_hash"
| "splash_hash"
| "owner_id"
| "region"
| "afk_channel_id"
| "vanity_url_code"
| "widget_channel_id"
| "system_channel_id"
| "topic"
| "application_id"
| "permissions"
| "allow"
| "deny"
| "code"
| "channel_id"
| "inviter_id"
| "nick"
| "avatar_hash"
| "id";
}
| {
newValue: number;
oldValue: number;
key:
| "afk_timeout"
| "mfa_level"
| "verification_level"
| "explicit_content_filter"
| "default_messagae_notifications"
| "prune_delete_days"
| "position"
| "bitrate"
| "rate_limit_per_user"
| "color"
| "max_uses"
| "uses"
| "max_age"
| "expire_behavior"
| "expire_grace_period"
| "user_limit";
}
newValue: number;
oldValue: number;
key:
| "afk_timeout"
| "mfa_level"
| "verification_level"
| "explicit_content_filter"
| "default_messagae_notifications"
| "prune_delete_days"
| "position"
| "bitrate"
| "rate_limit_per_user"
| "color"
| "max_uses"
| "uses"
| "max_age"
| "expire_behavior"
| "expire_grace_period"
| "user_limit";
}
| {
newValue: Partial<Role>;
oldValue: Partial<Role>;
key: "$add" | "$remove";
}
newValue: Partial<Role>;
oldValue: Partial<Role>;
key: "$add" | "$remove";
}
| {
newValue: boolean;
oldValue: boolean;
key:
| "widget_enabled"
| "nsfw"
| "hoist"
| "mentionable"
| "temporary"
| "deaf"
| "mute"
| "enable_emoticons";
}
newValue: boolean;
oldValue: boolean;
key:
| "widget_enabled"
| "nsfw"
| "hoist"
| "mentionable"
| "temporary"
| "deaf"
| "mute"
| "enable_emoticons";
}
| {
newValue: Overwrite[];
oldValue: Overwrite[];
key: "permission_overwrites";
}
newValue: Overwrite[];
oldValue: Overwrite[];
key: "permission_overwrites";
}
| {
newValue: string | number;
oldValue: string | number;
key: "type";
};
newValue: string | number;
oldValue: string | number;
key: "type";
};
/** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */
export type DiscordAuditLogChangeValue = SnakeCaseProps<AuditLogChangeValue>;
export type DiscordAuditLogChangeValue = SnakeCasedPropertiesDeep<AuditLogChangeValue>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { AuditLogChange } from "./audit_log_change.ts";
import { DiscordAuditLogEvents } from "./audit_log_events.ts";
import { OptionalAuditEntryInfo } from "./optional_audit_entry_info.ts";
@@ -21,4 +21,4 @@ export interface AuditLogEntry {
}
/** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-entry-structure */
export type DiscordAuditLogEntry = SnakeCaseProps<AuditLogEntry>;
export type DiscordAuditLogEntry = SnakeCasedPropertiesDeep<AuditLogEntry>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordAuditLogEvents } from "./audit_log_events.ts";
export interface GetGuildAuditLog {
@@ -13,4 +13,4 @@ export interface GetGuildAuditLog {
}
/** https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log-query-string-parameters */
export type DiscordGetGuildAuditLog = SnakeCaseProps<GetGuildAuditLog>;
export type DiscordGetGuildAuditLog = SnakeCasedPropertiesDeep<GetGuildAuditLog>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface OptionalAuditEntryInfo {
/** Number of days after which inactive members were kicked */
@@ -20,6 +20,4 @@ export interface OptionalAuditEntryInfo {
}
/** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info */
export type DiscordOptionalAuditEntryInfo = SnakeCaseProps<
OptionalAuditEntryInfo
>;
export type DiscordOptionalAuditEntryInfo = SnakeCasedPropertiesDeep<OptionalAuditEntryInfo>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordChannelTypes } from "./channel_types.ts";
import { DiscordOverwrite, Overwrite } from "./overwrite.ts";
@@ -44,6 +44,6 @@ export interface Channel {
/** https://discord.com/developers/docs/resources/channel#channel-object */
export interface DiscordChannel
extends SnakeCaseProps<Omit<Channel, "permissionOverwrites">> {
extends SnakeCasedPropertiesDeep<Omit<Channel, "permissionOverwrites">> {
permission_overwrites?: DiscordOverwrite[];
}

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface ChannelMention {
/** id of the channel */
@@ -12,4 +12,4 @@ export interface ChannelMention {
}
/** https://discord.com/developers/docs/resources/channel#channel-mention-object */
export type DiscordChannelMention = SnakeCaseProps<ChannelMention>;
export type DiscordChannelMention = SnakeCasedPropertiesDeep<ChannelMention>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface ChannelPinsUpdate {
/** The id of the guild */
@@ -10,4 +10,4 @@ export interface ChannelPinsUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#channel-pins-update */
export type DiscordChannelPinsUpdate = SnakeCaseProps<ChannelPinsUpdate>;
export type DiscordChannelPinsUpdate = SnakeCasedPropertiesDeep<ChannelPinsUpdate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface FollowedChannel {
/** Source message id */
@@ -8,4 +8,4 @@ export interface FollowedChannel {
}
/** https://discord.com/developers/docs/resources/channel#followed-channel-object */
export type DiscordFollowedChannel = SnakeCaseProps<FollowedChannel>;
export type DiscordFollowedChannel = SnakeCasedPropertiesDeep<FollowedChannel>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordChannelTypes } from "./channel_types.ts";
import { DiscordOverwrite, Overwrite } from "./overwrite.ts";
@@ -27,6 +27,8 @@ export interface ModifyChannel {
/** https://discord.com/developers/docs/resources/channel#modify-channel */
export interface DiscordModifyChannel
extends SnakeCaseProps<Omit<ModifyChannel, "permissionOverwrites">> {
extends SnakeCasedPropertiesDeep<
Omit<ModifyChannel, "permissionOverwrites">
> {
permission_overwrites?: DiscordOverwrite[];
}

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface EmbedAuthor {
/** Name of author */
@@ -12,4 +12,4 @@ export interface EmbedAuthor {
}
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure */
export type DiscordEmbedAuthor = SnakeCaseProps<EmbedAuthor>;
export type DiscordEmbedAuthor = SnakeCasedPropertiesDeep<EmbedAuthor>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface EmbedFooter {
/** Footer text */
@@ -10,4 +10,4 @@ export interface EmbedFooter {
}
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure */
export type DiscordEmbedFooter = SnakeCaseProps<EmbedFooter>;
export type DiscordEmbedFooter = SnakeCasedPropertiesDeep<EmbedFooter>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface EmbedImage {
/** Source url of image (only supports http(s) and attachments) */
@@ -12,4 +12,4 @@ export interface EmbedImage {
}
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure */
export type DiscordEmbedImage = SnakeCaseProps<EmbedImage>;
export type DiscordEmbedImage = SnakeCasedPropertiesDeep<EmbedImage>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface EmbedThumbnail {
/** Source url of thumbnail (only supports http(s) and attachments) */
@@ -12,4 +12,4 @@ export interface EmbedThumbnail {
}
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure */
export type DiscordEmbedThumbnail = SnakeCaseProps<EmbedThumbnail>;
export type DiscordEmbedThumbnail = SnakeCasedPropertiesDeep<EmbedThumbnail>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface EmbedVideo {
/** Source url of video */
@@ -12,4 +12,4 @@ export interface EmbedVideo {
}
/** https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure */
export type DiscordEmbedVideo = SnakeCaseProps<EmbedVideo>;
export type DiscordEmbedVideo = SnakeCasedPropertiesDeep<EmbedVideo>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Emoji {
/** Emoji id */
@@ -21,4 +21,4 @@ export interface Emoji {
}
/** https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure */
export type DiscordEmoji = SnakeCaseProps<Emoji>;
export type DiscordEmoji = SnakeCasedPropertiesDeep<Emoji>;

View File

@@ -1,5 +1,5 @@
import { Emoji } from "../emojis/emoji.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildEmojisUpdate {
/** id of the guild */
@@ -9,4 +9,4 @@ export interface GuildEmojisUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#guild-emojis-update */
export type DiscordGuildEmojisUpdate = SnakeCaseProps<GuildEmojisUpdate>;
export type DiscordGuildEmojisUpdate = SnakeCasedPropertiesDeep<GuildEmojisUpdate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { SessionStartLimit } from "./session_start_limit.ts";
export interface GetGatewayBot {
@@ -11,4 +11,4 @@ export interface GetGatewayBot {
}
/** https://discord.com/developers/docs/topics/gateway#get-gateway-bot */
export type DiscordGetGatewayBot = SnakeCaseProps<GetGatewayBot>;
export type DiscordGetGatewayBot = SnakeCasedPropertiesDeep<GetGatewayBot>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Hello {
/** The interval (in milliseconds) the client should heartbeat with */
@@ -6,4 +6,4 @@ export interface Hello {
}
/** https://discord.com/developers/docs/topics/gateway#hello */
export type DiscordHello = SnakeCaseProps<Hello>;
export type DiscordHello = SnakeCasedPropertiesDeep<Hello>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { IdentifyConnectionProperties } from "./identify_connection_properties.ts";
import { StatusUpdate } from "./status_update.ts";
@@ -22,4 +22,4 @@ export interface Identify {
}
/** https://discord.com/developers/docs/topics/gateway#identify */
export type DiscordIdentify = SnakeCaseProps<Identify>;
export type DiscordIdentify = SnakeCasedPropertiesDeep<Identify>;

View File

@@ -1,7 +1,7 @@
import { UnavailableGuild } from "../guilds/unavailable_guild.ts";
import { Application } from "../oauth2/application.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Ready {
/** Gateway version */
@@ -17,10 +17,8 @@ export interface Ready {
/** The shard information associated with this session, if sent when identifying */
shard?: [number, number];
/** Contains id and flags */
application:
& Partial<Application>
& Pick<Application, "id" | "flags">;
application: Partial<Application> & Pick<Application, "id" | "flags">;
}
/** https://discord.com/developers/docs/topics/gateway#ready */
export type DiscordReady = SnakeCaseProps<Ready>;
export type DiscordReady = SnakeCasedPropertiesDeep<Ready>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface SessionStartLimit {
/** The total number of session starts the current user is allowed */
@@ -12,4 +12,4 @@ export interface SessionStartLimit {
}
/** https://discord.com/developers/docs/topics/gateway#session-start-limit-object */
export type DiscordSessionStartLimit = SnakeCaseProps<SessionStartLimit>;
export type DiscordSessionStartLimit = SnakeCasedPropertiesDeep<SessionStartLimit>;

View File

@@ -1,5 +1,5 @@
import { Activity } from "../misc/activity.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordStatusTypes } from "./status_types.ts";
export interface StatusUpdate {
@@ -14,4 +14,4 @@ export interface StatusUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#update-status */
export type DiscordStatusUpdate = SnakeCaseProps<StatusUpdate>;
export type DiscordStatusUpdate = SnakeCasedPropertiesDeep<StatusUpdate>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Ban {
/** The reason for the ban */
@@ -9,4 +9,4 @@ export interface Ban {
}
/** https://discord.com/developers/docs/resources/guild#ban-object */
export type DiscordBan = SnakeCaseProps<Ban>;
export type DiscordBan = SnakeCasedPropertiesDeep<Ban>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface BeginGuildPrune {
/** Number of days to prune (1 or more), default: 7 */
@@ -10,6 +10,4 @@ export interface BeginGuildPrune {
}
/** https://discord.com/developers/docs/resources/guild#begin-guild-prune */
export type DiscordBeginGuildPrune = SnakeCaseProps<
BeginGuildPrune
>;
export type DiscordBeginGuildPrune = SnakeCasedPropertiesDeep<BeginGuildPrune>;

View File

@@ -1,6 +1,6 @@
import { Channel } from "../channels/channel.ts";
import { Role } from "../permissions/role.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordDefaultMessageNotificationLevels } from "./default_message_notification_levels.ts";
import { DiscordExplicitContentFilterLevels } from "./explicit_content_filter_levels.ts";
import { DiscordVerificationLevels } from "./verification_levels.ts";
@@ -31,4 +31,4 @@ export interface CreateGuild {
}
/** https://discord.com/developers/docs/resources/guild#create-guild */
export type DiscordCreateGuild = SnakeCaseProps<CreateGuild>;
export type DiscordCreateGuild = SnakeCasedPropertiesDeep<CreateGuild>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface CreateGuildBan {
/** Number of days to delete messages for (0-7) */
@@ -8,4 +8,4 @@ export interface CreateGuildBan {
}
/** https://discord.com/developers/docs/resources/guild#create-guild-ban */
export type DiscordCreateGuildBan = SnakeCaseProps<CreateGuildBan>;
export type DiscordCreateGuildBan = SnakeCasedPropertiesDeep<CreateGuildBan>;

View File

@@ -1,6 +1,6 @@
import { DiscordChannelTypes } from "../channels/channel_types.ts";
import { DiscordOverwrite, Overwrite } from "../channels/overwrite.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface CreateGuildChannel {
/** Channel name (2-100 characters) */
@@ -27,6 +27,8 @@ export interface CreateGuildChannel {
/** https://discord.com/developers/docs/resources/guild#create-guild-channel */
export interface DiscordCreateGuildChannel
extends SnakeCaseProps<Omit<CreateGuildChannel, "permissionOverwrites">> {
extends SnakeCasedPropertiesDeep<
Omit<CreateGuildChannel, "permissionOverwrites">
> {
permission_overwrites: DiscordOverwrite[];
}

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GetGuildQuery {
/** When true, will return approximate member and presence counts for the guild */
@@ -6,4 +6,4 @@ export interface GetGuildQuery {
}
/** https://discord.com/developers/docs/resources/guild#get-guild */
export type DiscordGetGuildQuery = SnakeCaseProps<GetGuildQuery>;
export type DiscordGetGuildQuery = SnakeCasedPropertiesDeep<GetGuildQuery>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GetGuildPruneCountQuery {
/** Number of days to count prune for (1 or more), default: 7 */
@@ -8,6 +8,4 @@ export interface GetGuildPruneCountQuery {
}
/** https://discord.com/developers/docs/resources/guild#get-guild-prune-count */
export type DiscordGetGuildPruneCountQuery = SnakeCaseProps<
GetGuildPruneCountQuery
>;
export type DiscordGetGuildPruneCountQuery = SnakeCasedPropertiesDeep<GetGuildPruneCountQuery>;

View File

@@ -2,7 +2,7 @@ import { Channel } from "../channels/channel.ts";
import { Emoji } from "../emojis/emoji.ts";
import { PresenceUpdate } from "../misc/presence_update.ts";
import { Role } from "../permissions/role.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { VoiceState } from "../voice/voice_state.ts";
import { DiscordDefaultMessageNotificationLevels } from "./default_message_notification_levels.ts";
import { DiscordExplicitContentFilterLevels } from "./explicit_content_filter_levels.ts";
@@ -110,4 +110,4 @@ export interface Guild {
}
/** https://discord.com/developers/docs/resources/guild#guild-object */
export type DiscordGuild = SnakeCaseProps<Guild>;
export type DiscordGuild = SnakeCasedPropertiesDeep<Guild>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildBanAddRemove {
/** id of the guild */
@@ -9,4 +9,4 @@ export interface GuildBanAddRemove {
}
/** https://discord.com/developers/docs/topics/gateway#guild-ban-add */
export type DiscordGuildBanAddRemove = SnakeCaseProps<GuildBanAddRemove>;
export type DiscordGuildBanAddRemove = SnakeCasedPropertiesDeep<GuildBanAddRemove>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildBanRemove {
/** id of the guild */
@@ -9,4 +9,4 @@ export interface GuildBanRemove {
}
/** https://discord.com/developers/docs/topics/gateway#guild-ban-remove */
export type DiscordGuildBanRemove = SnakeCaseProps<GuildBanRemove>;
export type DiscordGuildBanRemove = SnakeCasedPropertiesDeep<GuildBanRemove>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildMember {
/** The user this guild member represents */
@@ -21,4 +21,4 @@ export interface GuildMember {
}
/** https://discord.com/developers/docs/resources/guild#guild-member-object */
export type DiscordGuildMember = SnakeCaseProps<GuildMember>;
export type DiscordGuildMember = SnakeCasedPropertiesDeep<GuildMember>;

View File

@@ -1,5 +1,5 @@
import { Emoji } from "../emojis/emoji.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordGuildFeatures } from "./guild_features.ts";
export interface GuildPreview {
@@ -26,4 +26,4 @@ export interface GuildPreview {
}
/** https://discord.com/developers/docs/resources/guild#guild-preview-object */
export type DiscordGuildPreview = SnakeCaseProps<GuildPreview>;
export type DiscordGuildPreview = SnakeCasedPropertiesDeep<GuildPreview>;

View File

@@ -1,5 +1,5 @@
import { Role } from "../permissions/role.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildRoleCreate {
/** The id of the guild */
@@ -9,4 +9,4 @@ export interface GuildRoleCreate {
}
/** https://discord.com/developers/docs/topics/gateway#guild-role-create */
export type DiscordGuildRoleCreate = SnakeCaseProps<GuildRoleCreate>;
export type DiscordGuildRoleCreate = SnakeCasedPropertiesDeep<GuildRoleCreate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildRoleDelete {
/** id of the guild */
@@ -8,4 +8,4 @@ export interface GuildRoleDelete {
}
/** https://discord.com/developers/docs/topics/gateway#guild-role-delete */
export type DiscordGuildRoleDelete = SnakeCaseProps<GuildRoleDelete>;
export type DiscordGuildRoleDelete = SnakeCasedPropertiesDeep<GuildRoleDelete>;

View File

@@ -1,5 +1,5 @@
import { Role } from "../permissions/role.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildRoleUpdate {
/** The id of the guild */
@@ -9,4 +9,4 @@ export interface GuildRoleUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#guild-role-update */
export type DiscordGuildRoleUpdate = SnakeCaseProps<GuildRoleUpdate>;
export type DiscordGuildRoleUpdate = SnakeCasedPropertiesDeep<GuildRoleUpdate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildWidget {
/** Whether the widget is enabled */
@@ -8,4 +8,4 @@ export interface GuildWidget {
}
/** https://discord.com/developers/docs/resources/guild#guild-widget-object-guild-widget-structure */
export type DiscordGuildWidget = SnakeCaseProps<GuildWidget>;
export type DiscordGuildWidget = SnakeCasedPropertiesDeep<GuildWidget>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordDefaultMessageNotificationLevels } from "./default_message_notification_levels.ts";
import { DiscordExplicitContentFilterLevels } from "./explicit_content_filter_levels.ts";
import { DiscordVerificationLevels } from "./verification_levels.ts";
@@ -37,4 +37,4 @@ export interface ModifyGuild {
}
/** https://discord.com/developers/docs/resources/guild#modify-guild */
export type DiscordModifyGuild = SnakeCaseProps<ModifyGuild>;
export type DiscordModifyGuild = SnakeCasedPropertiesDeep<ModifyGuild>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface ModifyGuildMember {
/** Value to set users nickname to. Requires the `MANAGE_NICKNAMES` permission */
@@ -14,4 +14,4 @@ export interface ModifyGuildMember {
}
/** https://discord.com/developers/docs/resources/guild#modify-guild-member */
export type DiscordModifyGuildMember = SnakeCaseProps<ModifyGuildMember>;
export type DiscordModifyGuildMember = SnakeCasedPropertiesDeep<ModifyGuildMember>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface RequestGuildMembers {
/** id of the guild to get members for */
@@ -16,4 +16,4 @@ export interface RequestGuildMembers {
}
/** https://discord.com/developers/docs/topics/gateway#request-guild-members */
export type DiscordRequestGuildMembers = SnakeCaseProps<RequestGuildMembers>;
export type DiscordRequestGuildMembers = SnakeCasedPropertiesDeep<RequestGuildMembers>;

View File

@@ -1,7 +1,7 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Guild } from "./guild.ts";
export type UnavailableGuild = Pick<Guild, "id" | "unavailable">;
/** https://discord.com/developers/docs/resources/guild#unavailable-guild-object */
export type DiscordUnavailableGuild = SnakeCaseProps<UnavailableGuild>;
export type DiscordUnavailableGuild = SnakeCasedPropertiesDeep<UnavailableGuild>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { WelcomeScreenChannel } from "./welcome_screen_channel.ts";
export interface WelcomeScreen {
@@ -9,4 +9,4 @@ export interface WelcomeScreen {
}
/** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-structure */
export type DiscordWelcomeScreen = SnakeCaseProps<WelcomeScreen>;
export type DiscordWelcomeScreen = SnakeCasedPropertiesDeep<WelcomeScreen>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface WelcomeScreenChannel {
/** The channel's id */
@@ -12,4 +12,4 @@ export interface WelcomeScreenChannel {
}
/** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure */
export type DiscordWelcomeScreenChannel = SnakeCaseProps<WelcomeScreenChannel>;
export type DiscordWelcomeScreenChannel = SnakeCasedPropertiesDeep<WelcomeScreenChannel>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildIntegrationsUpdate {
/** id of the guild whose integrations were updated */
@@ -6,6 +6,4 @@ export interface GuildIntegrationsUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#guild-integrations-update */
export type DiscordGuildIntegrationsUpdate = SnakeCaseProps<
GuildIntegrationsUpdate
>;
export type DiscordGuildIntegrationsUpdate = SnakeCasedPropertiesDeep<GuildIntegrationsUpdate>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { IntegrationAccount } from "./integration_account.ts";
import { IntegrationApplication } from "./integration_application.ts";
import { DiscordIntegrationExpireBehaviors } from "./integration_expire_behaviors.ts";
@@ -38,4 +38,4 @@ export interface Integration {
}
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-structure */
export type DiscordIntegration = SnakeCaseProps<Integration>;
export type DiscordIntegration = SnakeCasedPropertiesDeep<Integration>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface IntegrationApplication {
/** The id of the app */
@@ -17,6 +17,4 @@ export interface IntegrationApplication {
}
/** https://discord.com/developers/docs/resources/guild#integration-application-object-integration-application-structure */
export type DiscordIntegrationApplication = SnakeCaseProps<
IntegrationApplication
>;
export type DiscordIntegrationApplication = SnakeCasedPropertiesDeep<IntegrationApplication>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Integration } from "./integration.ts";
export interface IntegrationCreateUpdate extends Integration {
@@ -7,6 +7,4 @@ export interface IntegrationCreateUpdate extends Integration {
}
/** https://github.com/discord/discord-api-docs/blob/master/docs/topics/Gateway.md#integration-create-event-additional-fields */
export type DiscordIntegrationCreateUpdate = SnakeCaseProps<
IntegrationCreateUpdate
>;
export type DiscordIntegrationCreateUpdate = SnakeCasedPropertiesDeep<IntegrationCreateUpdate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface IntegrationDelete {
/** Integration id */
@@ -10,4 +10,4 @@ export interface IntegrationDelete {
}
/** https://github.com/discord/discord-api-docs/blob/master/docs/topics/Gateway.md#integration-delete-event-fields */
export type DiscordIntegrationDelete = SnakeCaseProps<IntegrationDelete>;
export type DiscordIntegrationDelete = SnakeCasedPropertiesDeep<IntegrationDelete>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface ModifyGuildIntegration {
/** The behavior when an integration subscription lapses (see the [integration expire behaviors](https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors) documentation) */
@@ -10,6 +10,4 @@ export interface ModifyGuildIntegration {
}
/** https://discord.com/developers/docs/resources/guild#modify-guild-integration-json-params */
export type DiscordModifyGuildIntegration = SnakeCaseProps<
ModifyGuildIntegration
>;
export type DiscordModifyGuildIntegration = SnakeCasedPropertiesDeep<ModifyGuildIntegration>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOption } from "./application_command_option.ts";
export interface ApplicationCommand {
@@ -15,4 +15,4 @@ export interface ApplicationCommand {
}
/** https://discord.com/developers/docs/interactions/slash-commands#applicationcommand */
export type DiscordApplicationCommand = SnakeCaseProps<ApplicationCommand>;
export type DiscordApplicationCommand = SnakeCasedPropertiesDeep<ApplicationCommand>;

View File

@@ -1,6 +1,6 @@
import { Embed } from "../embeds/embed.ts";
import { AllowedMentions } from "../messages/allowed_mentions.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface InteractionApplicationCommandCallbackData {
/** Is the response TTS */
@@ -16,6 +16,4 @@ export interface InteractionApplicationCommandCallbackData {
}
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionapplicationcommandcallbackdata */
export type DiscordInteractionApplicationCommandCallbackData = SnakeCaseProps<
InteractionApplicationCommandCallbackData
>;
export type DiscordInteractionApplicationCommandCallbackData = SnakeCasedPropertiesDeep<InteractionApplicationCommandCallbackData>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommand } from "./application_command.ts";
export interface ApplicationCommandCreateUpdateDelete
@@ -8,6 +8,4 @@ export interface ApplicationCommandCreateUpdateDelete
}
/** https://discord.com/developers/docs/topics/gateway#application-command-delete-application-command-extra-fields */
export type DiscordApplicationCommandCreateUpdateDelete = SnakeCaseProps<
ApplicationCommandCreateUpdateDelete
>;
export type DiscordApplicationCommandCreateUpdateDelete = SnakeCasedPropertiesDeep<ApplicationCommandCreateUpdateDelete>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandInteractionDataOption } from "./application_command_interaction_data_option.ts";
export interface ApplicationCommandInteractionData {
@@ -11,6 +11,4 @@ export interface ApplicationCommandInteractionData {
}
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondata */
export type DiscordApplicationCommandInteractionData = SnakeCaseProps<
ApplicationCommandInteractionData
>;
export type DiscordApplicationCommandInteractionData = SnakeCasedPropertiesDeep<ApplicationCommandInteractionData>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordApplicationCommandOptionTypes } from "./application_command_option_types.ts";
export interface ApplicationCommandInteractionDataOption {
@@ -11,6 +11,4 @@ export interface ApplicationCommandInteractionDataOption {
}
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-applicationcommandinteractiondataoption */
export type DiscordApplicationCommandInteractionDataOption = SnakeCaseProps<
ApplicationCommandInteractionDataOption
>;
export type DiscordApplicationCommandInteractionDataOption = SnakeCasedPropertiesDeep<ApplicationCommandInteractionDataOption>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOptionChoice } from "./application_command_option_choice.ts";
import { DiscordApplicationCommandOptionTypes } from "./application_command_option_types.ts";
@@ -18,6 +18,4 @@ export interface ApplicationCommandOption {
}
/** https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoption */
export type DiscordApplicationCommandOption = SnakeCaseProps<
ApplicationCommandOption
>;
export type DiscordApplicationCommandOption = SnakeCasedPropertiesDeep<ApplicationCommandOption>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOption } from "./application_command_option.ts";
export interface CreateGlobalApplicationCommand {
@@ -11,6 +11,4 @@ export interface CreateGlobalApplicationCommand {
}
/** https://discord.com/developers/docs/interactions/slash-commands#create-global-application-command-json-params */
export type DiscordCreateGlobalApplicationCommand = SnakeCaseProps<
CreateGlobalApplicationCommand
>;
export type DiscordCreateGlobalApplicationCommand = SnakeCasedPropertiesDeep<CreateGlobalApplicationCommand>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOption } from "./application_command_option.ts";
export interface CreateGuildApplicationCommand {
@@ -11,6 +11,4 @@ export interface CreateGuildApplicationCommand {
}
/** https://discord.com/developers/docs/interactions/slash-commands#create-guild-application-command-json-params */
export type DiscordCreateGuildApplicationCommand = SnakeCaseProps<
CreateGuildApplicationCommand
>;
export type DiscordCreateGuildApplicationCommand = SnakeCasedPropertiesDeep<CreateGuildApplicationCommand>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOption } from "./application_command_option.ts";
export interface EditGlobalApplicationCommand {
@@ -11,6 +11,4 @@ export interface EditGlobalApplicationCommand {
}
/** https://discord.com/developers/docs/interactions/slash-commands#edit-global-application-command-json-params */
export type DiscordEditGlobalApplicationCommand = SnakeCaseProps<
EditGlobalApplicationCommand
>;
export type DiscordEditGlobalApplicationCommand = SnakeCasedPropertiesDeep<EditGlobalApplicationCommand>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ApplicationCommandOption } from "./application_command_option.ts";
export interface EditGuildApplicationCommand {
@@ -11,6 +11,4 @@ export interface EditGuildApplicationCommand {
}
/** https://discord.com/developers/docs/interactions/slash-commands#edit-guild-application-command-json-params */
export type DiscordEditGuildApplicationCommand = SnakeCaseProps<
EditGuildApplicationCommand
>;
export type DiscordEditGuildApplicationCommand = SnakeCasedPropertiesDeep<EditGuildApplicationCommand>;

View File

@@ -1,6 +1,6 @@
import { GuildMember } from "../guilds/guild_member.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { InteractionApplicationCommandCallbackData } from "./application_command_callback_data.ts";
import { DiscordInteractionTypes } from "./interaction_types.ts";
@@ -26,4 +26,4 @@ export interface Interaction {
}
/** https://discord.com/developers/docs/interactions/slash-commands#interaction */
export type DiscordInteraction = SnakeCaseProps<Interaction>;
export type DiscordInteraction = SnakeCasedPropertiesDeep<Interaction>;

View File

@@ -1,5 +1,5 @@
import { GuildMember } from "../guilds/guild_member.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface InteractionGuildMember extends GuildMember {
/** Total permissions of the member in the channel, including overrides, returned when in the interaction object */
@@ -7,6 +7,4 @@ export interface InteractionGuildMember extends GuildMember {
}
/** https://discord.com/developers/docs/resources/guild#guild-member-object */
export type DiscordInteractionGuildMember = SnakeCaseProps<
InteractionGuildMember
>;
export type DiscordInteractionGuildMember = SnakeCasedPropertiesDeep<InteractionGuildMember>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { InteractionApplicationCommandCallbackData } from "./application_command_callback_data.ts";
import { InteractionResponseTypes } from "./interaction_response_types.ts";
@@ -10,4 +10,4 @@ export interface InteractionResponse {
}
/** https://discord.com/developers/docs/interactions/slash-commands#interaction-response */
export type DiscordInteractionResponse = SnakeCaseProps<InteractionResponse>;
export type DiscordInteractionResponse = SnakeCasedPropertiesDeep<InteractionResponse>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordInteractionTypes } from "./interaction_types.ts";
export interface MessageInteraction {
@@ -14,4 +14,4 @@ export interface MessageInteraction {
}
/** https://discord.com/developers/docs/interactions/slash-commands#messageinteraction */
export type DiscordMessageInteraction = SnakeCaseProps<MessageInteraction>;
export type DiscordMessageInteraction = SnakeCasedPropertiesDeep<MessageInteraction>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GetInvite {
/** Whether the invite should contain approximate member counts */
@@ -6,4 +6,4 @@ export interface GetInvite {
}
/** https://discord.com/developers/docs/resources/invite#get-invite */
export type DiscordGetInvite = SnakeCaseProps<GetInvite>;
export type DiscordGetInvite = SnakeCasedPropertiesDeep<GetInvite>;

View File

@@ -1,7 +1,7 @@
import { Channel } from "../channels/channel.ts";
import { Guild } from "../guilds/guild.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordTargetUserTypes } from "./target_user_types.ts";
export interface Invite {
@@ -24,4 +24,4 @@ export interface Invite {
}
/** https://discord.com/developers/docs/resources/invite#invite-object */
export type DiscordInvite = SnakeCaseProps<Invite>;
export type DiscordInvite = SnakeCasedPropertiesDeep<Invite>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface InviteCreate {
/** The channel the invite is for */
@@ -27,4 +27,4 @@ export interface InviteCreate {
}
/** https://discord.com/developers/docs/topics/gateway#invite-create */
export type DiscordInviteCreate = SnakeCaseProps<InviteCreate>;
export type DiscordInviteCreate = SnakeCasedPropertiesDeep<InviteCreate>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
/** https://discord.com/developers/docs/topics/gateway#invite-delete */
export interface InviteDelete {
@@ -10,4 +10,4 @@ export interface InviteDelete {
code: string;
}
export type DiscordInviteDelete = SnakeCaseProps<InviteDelete>;
export type DiscordInviteDelete = SnakeCasedPropertiesDeep<InviteDelete>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Invite } from "./invite.ts";
export interface InviteMetadata extends Invite {
@@ -15,4 +15,4 @@ export interface InviteMetadata extends Invite {
}
/** https://discord.com/developers/docs/resources/invite#invite-metadata-object */
export type DiscordInviteMetadata = SnakeCaseProps<InviteMetadata>;
export type DiscordInviteMetadata = SnakeCasedPropertiesDeep<InviteMetadata>;

View File

@@ -1,5 +1,5 @@
import { GuildMember } from "../guilds/guild_member.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildMemberAdd extends GuildMember {
/** id of the guild */
@@ -7,4 +7,4 @@ export interface GuildMemberAdd extends GuildMember {
}
/** https://discord.com/developers/docs/topics/gateway#guild-member-add */
export type DiscordGuildMemberAdd = SnakeCaseProps<GuildMemberAdd>;
export type DiscordGuildMemberAdd = SnakeCasedPropertiesDeep<GuildMemberAdd>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildMemberRemove {
/** The id of the guild */
@@ -9,4 +9,4 @@ export interface GuildMemberRemove {
}
/** https://discord.com/developers/docs/topics/gateway#guild-member-remove */
export type DiscordGuildMemberRemove = SnakeCaseProps<GuildMemberRemove>;
export type DiscordGuildMemberRemove = SnakeCasedPropertiesDeep<GuildMemberRemove>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildMemberUpdate {
/** The id of the guild */
@@ -19,4 +19,4 @@ export interface GuildMemberUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#guild-member-update */
export type DiscordGuildMemberUpdate = SnakeCaseProps<GuildMemberUpdate>;
export type DiscordGuildMemberUpdate = SnakeCasedPropertiesDeep<GuildMemberUpdate>;

View File

@@ -1,6 +1,6 @@
import { GuildMember } from "../guilds/guild_member.ts";
import { PresenceUpdate } from "../misc/presence_update.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface GuildMembersChunk {
/** The id of the guild */
@@ -20,4 +20,4 @@ export interface GuildMembersChunk {
}
/** https://discord.com/developers/docs/topics/gateway#guild-members-chunk */
export type DiscordGuildMembersChunk = SnakeCaseProps<GuildMembersChunk>;
export type DiscordGuildMembersChunk = SnakeCasedPropertiesDeep<GuildMembersChunk>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordAllowedMentionsTypes } from "./allowed_mentions_types.ts";
export interface AllowedMentions {
@@ -13,4 +13,4 @@ export interface AllowedMentions {
}
/** https://discord.com/developers/docs/resources/channel#allowed-mentions-object */
export type DiscordAllowedMentions = SnakeCaseProps<AllowedMentions>;
export type DiscordAllowedMentions = SnakeCasedPropertiesDeep<AllowedMentions>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Attachment {
/** Attachment id */
@@ -18,4 +18,4 @@ export interface Attachment {
}
/** https://discord.com/developers/docs/resources/channel#attachment-object */
export type DiscordAttachment = SnakeCaseProps<Attachment>;
export type DiscordAttachment = SnakeCasedPropertiesDeep<Attachment>;

View File

@@ -2,7 +2,7 @@ import { Embed } from "../embeds/embed.ts";
import { AllowedMentions } from "../messages/allowed_mentions.ts";
import { MessageReference } from "../messages/message_reference.ts";
import { FileContent } from "../misc/file_content.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface CreateMessage {
/** The message contents (up to 2000 characters) */
@@ -22,4 +22,6 @@ export interface CreateMessage {
}
/** https://discord.com/developers/docs/resources/channel#create-message */
export type DiscordCreateMessage = SnakeCaseProps<Omit<CreateMessage, "file">>;
export type DiscordCreateMessage = SnakeCasedPropertiesDeep<
Omit<CreateMessage, "file">
>;

View File

@@ -1,5 +1,5 @@
import { Embed } from "../embeds/embed.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { AllowedMentions } from "./allowed_mentions.ts";
export interface EditMessage {
@@ -14,4 +14,4 @@ export interface EditMessage {
}
/** https://discord.com/developers/docs/resources/channel#edit-message-json-params */
export type DiscordEditMessage = SnakeCaseProps<EditMessage>;
export type DiscordEditMessage = SnakeCasedPropertiesDeep<EditMessage>;

View File

@@ -3,7 +3,7 @@ import { Embed } from "../embeds/embed.ts";
import { GuildMember } from "../guilds/guild_member.ts";
import { MessageInteraction } from "../interactions/message_interaction.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Attachment } from "./attachment.ts";
import { MessageActivity } from "./message_activity.ts";
import { MessageApplication } from "./message_application.ts";
@@ -85,4 +85,4 @@ export interface Message {
}
/** https://discord.com/developers/docs/resources/channel#message-object */
export type DiscordMessage = SnakeCaseProps<Message>;
export type DiscordMessage = SnakeCasedPropertiesDeep<Message>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordMessageActivityTypes } from "./message_activity_types.ts";
export interface MessageActivity {
@@ -9,4 +9,4 @@ export interface MessageActivity {
}
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
export type DiscordMessageActivity = SnakeCaseProps<MessageActivity>;
export type DiscordMessageActivity = SnakeCasedPropertiesDeep<MessageActivity>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface MessageApplication {
/** id of the application */
@@ -13,4 +13,4 @@ export interface MessageApplication {
name: string;
}
export type DiscordMessageApplication = SnakeCaseProps<MessageApplication>;
export type DiscordMessageApplication = SnakeCasedPropertiesDeep<MessageApplication>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface MessageDelete {
/** The id of the message */
@@ -10,4 +10,4 @@ export interface MessageDelete {
}
/** https://discord.com/developers/docs/topics/gateway#message-delete */
export type DiscordMessageDelete = SnakeCaseProps<MessageDelete>;
export type DiscordMessageDelete = SnakeCasedPropertiesDeep<MessageDelete>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface MessageDeleteBulk {
/** The ids of the messages */
@@ -10,4 +10,4 @@ export interface MessageDeleteBulk {
}
/** https://discord.com/developers/docs/topics/gateway#message-delete-bulk */
export type DiscordMessageDeleteBulk = SnakeCaseProps<MessageDeleteBulk>;
export type DiscordMessageDeleteBulk = SnakeCasedPropertiesDeep<MessageDeleteBulk>;

View File

@@ -1,6 +1,6 @@
import { Emoji } from "../emojis/emoji.ts";
import { GuildMember } from "../guilds/guild_member.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface MessageReactionAdd {
/** The id of the user */
@@ -18,4 +18,4 @@ export interface MessageReactionAdd {
}
/** https://discord.com/developers/docs/topics/gateway#message-reaction-add */
export type DiscordMessageReactionAdd = SnakeCaseProps<MessageReactionAdd>;
export type DiscordMessageReactionAdd = SnakeCasedPropertiesDeep<MessageReactionAdd>;

View File

@@ -1,12 +1,7 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { MessageReactionAdd } from "./message_reaction_add.ts";
export type MessageReactionRemove = Omit<
MessageReactionAdd,
"member"
>;
export type MessageReactionRemove = Omit<MessageReactionAdd, "member">;
/** https://discord.com/developers/docs/topics/gateway#message-reaction-remove */
export type DiscordMessageReactionRemove = SnakeCaseProps<
MessageReactionRemove
>;
export type DiscordMessageReactionRemove = SnakeCasedPropertiesDeep<MessageReactionRemove>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { MessageReactionAdd } from "./message_reaction_add.ts";
export type MessageReactionRemoveAll = Pick<
@@ -7,6 +7,4 @@ export type MessageReactionRemoveAll = Pick<
>;
/** https://discord.com/developers/docs/topics/gateway#message-reaction-remove-all */
export type DiscordMessageReactionRemoveAll = SnakeCaseProps<
MessageReactionRemoveAll
>;
export type DiscordMessageReactionRemoveAll = SnakeCasedPropertiesDeep<MessageReactionRemoveAll>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { MessageReactionAdd } from "./message_reaction_add.ts";
export type MessageReactionRemoveEmoji = Pick<
@@ -7,6 +7,4 @@ export type MessageReactionRemoveEmoji = Pick<
>;
/** https://discord.com/developers/docs/topics/gateway#message-reaction-remove-emoji */
export type DiscordMessageReactionRemoveEmoji = SnakeCaseProps<
MessageReactionRemoveEmoji
>;
export type DiscordMessageReactionRemoveEmoji = SnakeCasedPropertiesDeep<MessageReactionRemoveEmoji>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface MessageReference {
/** id of the originating message */
@@ -15,4 +15,4 @@ export interface MessageReference {
}
/** https://discord.com/developers/docs/resources/channel#message-object-message-reference-structure */
export type DiscordMessageReference = SnakeCaseProps<MessageReference>;
export type DiscordMessageReference = SnakeCasedPropertiesDeep<MessageReference>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordMessageStickerFormatTypes } from "./message_sticker_format_types.ts";
export interface MessageSticker {
@@ -27,4 +27,4 @@ export interface MessageSticker {
}
/** https://discord.com/developers/docs/resources/channel#message-object-message-sticker-structure */
export type DiscordMessageSticker = SnakeCaseProps<MessageSticker>;
export type DiscordMessageSticker = SnakeCasedPropertiesDeep<MessageSticker>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { ActivityAssets } from "./activity_assets.ts";
import { ActivityEmoji } from "./activity_emoji.ts";
import { ActivityParty } from "./activity_party.ts";
@@ -38,4 +38,4 @@ export interface Activity {
}
/** https://discord.com/developers/docs/topics/gateway#activity-object */
export type DiscordActivity = SnakeCaseProps<Activity>;
export type DiscordActivity = SnakeCasedPropertiesDeep<Activity>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface ActivityAssets {
/** The id for a large asset of the activity, usually a snowflake */
@@ -12,4 +12,4 @@ export interface ActivityAssets {
}
/** https://discord.com/developers/docs/topics/gateway#activity-object-activity-assets */
export type DiscordActivityAssets = SnakeCaseProps<ActivityAssets>;
export type DiscordActivityAssets = SnakeCasedPropertiesDeep<ActivityAssets>;

View File

@@ -1,5 +1,5 @@
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { Activity } from "./activity.ts";
import { ClientStatus } from "./client_status.ts";
@@ -17,4 +17,4 @@ export interface PresenceUpdate {
}
/** https://discord.com/developers/docs/topics/gateway#presence-update */
export type DiscordPresenceUpdate = SnakeCaseProps<PresenceUpdate>;
export type DiscordPresenceUpdate = SnakeCasedPropertiesDeep<PresenceUpdate>;

View File

@@ -1,5 +1,5 @@
import { GuildMember } from "../guilds/guild_member.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface TypingStart {
/** id of the channel */
@@ -15,4 +15,4 @@ export interface TypingStart {
}
/** https://discord.com/developers/docs/topics/gateway#typing-start */
export type DiscordTypingStart = SnakeCaseProps<TypingStart>;
export type DiscordTypingStart = SnakeCasedPropertiesDeep<TypingStart>;

View File

@@ -1,6 +1,6 @@
import { Team } from "../teams/team.ts";
import { User } from "../users/user.ts";
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
export interface Application {
/** The id of the app */
@@ -38,4 +38,4 @@ export interface Application {
}
/** https://discord.com/developers/docs/topics/oauth2#application-object */
export type DiscordApplication = SnakeCaseProps<Application>;
export type DiscordApplication = SnakeCasedPropertiesDeep<Application>;

View File

@@ -1,4 +1,4 @@
import { SnakeCaseProps } from "../util.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { DiscordOAuth2Scopes } from "./scopes.ts";
export interface BotAuthenticationFlowQuery {
@@ -15,6 +15,4 @@ export interface BotAuthenticationFlowQuery {
}
/** https://discord.com/developers/docs/topics/oauth2#bot-authorization-flow-bot-auth-parameters */
export type DiscordBotAuthenticationFlowQuery = SnakeCaseProps<
BotAuthenticationFlowQuery
>;
export type DiscordBotAuthenticationFlowQuery = SnakeCasedPropertiesDeep<BotAuthenticationFlowQuery>;

Some files were not shown because too many files have changed in this diff Show More