mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
remove Discord* types for invites
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#get-invite */
|
||||
export interface GetInvite {
|
||||
/** Whether the invite should contain approximate member counts */
|
||||
withCounts?: boolean;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#get-invite */
|
||||
export type DiscordGetInvite = SnakeCasedPropertiesDeep<GetInvite>;
|
||||
|
||||
@@ -2,9 +2,9 @@ import { Channel } from "../channels/channel.ts";
|
||||
import { Guild } from "../guilds/guild.ts";
|
||||
import { Application } from "../oauth2/application.ts";
|
||||
import { User } from "../users/user.ts";
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
import { DiscordTargetTypes } from "./target_types.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#invite-object */
|
||||
export interface Invite {
|
||||
/** The invite code (unique Id) */
|
||||
code: string;
|
||||
@@ -25,6 +25,3 @@ export interface Invite {
|
||||
/** Approximate count of total members */
|
||||
approximateMemberCount?: number;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#invite-object */
|
||||
export type DiscordInvite = SnakeCasedPropertiesDeep<Invite>;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Application } from "../oauth2/application.ts";
|
||||
import { User } from "../users/user.ts";
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
import { DiscordTargetTypes } from "./target_types.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#invite-create */
|
||||
export interface InviteCreate {
|
||||
/** The channel the invite is for */
|
||||
channelId: string;
|
||||
@@ -29,6 +29,3 @@ export interface InviteCreate {
|
||||
/** How many times the invite has been used (always will be 0) */
|
||||
uses: number;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#invite-create */
|
||||
export type DiscordInviteCreate = SnakeCasedPropertiesDeep<InviteCreate>;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#invite-delete */
|
||||
export interface InviteDelete {
|
||||
/** The channel of the invite */
|
||||
@@ -9,5 +7,3 @@ export interface InviteDelete {
|
||||
/** The unique invite code */
|
||||
code: string;
|
||||
}
|
||||
|
||||
export type DiscordInviteDelete = SnakeCasedPropertiesDeep<InviteDelete>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
import { Invite } from "./invite.ts";
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#invite-metadata-object */
|
||||
export interface InviteMetadata extends Invite {
|
||||
/** Number of times this invite has been used */
|
||||
uses: number;
|
||||
@@ -13,6 +13,3 @@ export interface InviteMetadata extends Invite {
|
||||
/** When this invite was created */
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/invite#invite-metadata-object */
|
||||
export type DiscordInviteMetadata = SnakeCasedPropertiesDeep<InviteMetadata>;
|
||||
|
||||
Reference in New Issue
Block a user