type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
TypeAliasDeclaration
type PossiblyUncachedTextableChannel = TextableChannel | Uncached;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type TextableChannel = (GuildTextable & GuildTextableChannel) | (ThreadTextable & AnyThreadChannel) | (Textable & PrivateChannel);
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type VideoQualityMode = Constants["VideoQualityModes"][keyof Constants["VideoQualityModes"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ChannelTypes = GuildChannelTypes | PrivateChannelTypes;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildChannelTypes = Exclude<Constants["ChannelTypes"][keyof Constants["ChannelTypes"]], PrivateChannelTypes>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type TextChannelTypes = GuildTextChannelTypes | PrivateChannelTypes;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildTextChannelTypes = Constants["ChannelTypes"][keyof Pick<Constants["ChannelTypes"], "GUILD_TEXT" | "GUILD_NEWS">];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildThreadChannelTypes = Constants["ChannelTypes"][keyof Pick<Constants["ChannelTypes"], "GUILD_NEWS_THREAD" | "GUILD_PRIVATE_THREAD" | "GUILD_PUBLIC_THREAD">];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildPublicThreadChannelTypes = Exclude<GuildThreadChannelTypes, Constants["ChannelTypes"]["GUILD_PRIVATE_THREAD"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildVoiceChannelTypes = Constants["ChannelTypes"][keyof Pick<Constants["ChannelTypes"], "GUILD_VOICE" | "GUILD_STAGE">];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type PrivateChannelTypes = Constants["ChannelTypes"][keyof Pick<Constants["ChannelTypes"], "DM" | "GROUP_DM">];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Command type CommandGenerator = CommandGeneratorFunction | MessageContent | MessageContent[] | CommandGeneratorFunction[];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type CommandGeneratorFunction = (msg: Message, args: string[]) => GeneratorFunctionReturn;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GeneratorFunctionReturn = Promise<MessageContent> | Promise<void> | MessageContent | void;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GenericCheckFunction<T> = (msg: Message) => T | Promise<T>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ReactionButtonsFilterFunction = (msg: Message, emoji: Emoji, userID: string) => boolean;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ReactionButtonsGenerator = ReactionButtonsGeneratorFunction | MessageContent | MessageContent[] | ReactionButtonsGeneratorFunction[];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ReactionButtonsGeneratorFunction = (msg: Message, args: string[], userID: string) => GeneratorFunctionReturn;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Gateway/REST type IntentStrings = keyof Constants["Intents"];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ReconnectDelayFunction = (lastDelay: number, attempts: number) => number;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type RequestMethod = "GET" | "PATCH" | "DELETE" | "POST" | "PUT";
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Guild type DefaultNotifications = Constants["DefaultMessageNotificationLevels"][keyof Constants["DefaultMessageNotificationLevels"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ExplicitContentFilter = Constants["ExplicitContentFilterLevels"][keyof Constants["ExplicitContentFilterLevels"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildFeatures = Constants["GuildFeatures"][number];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type NSFWLevel = Constants["GuildNSFWLevels"][keyof Constants["GuildNSFWLevels"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type PossiblyUncachedGuild = Guild | Uncached;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type PremiumTier = Constants["PremiumTiers"][keyof Constants["PremiumTiers"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type VerificationLevel = Constants["VerificationLevels"][keyof Constants["VerificationLevels"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type SystemChannelFlags = Constants["SystemChannelFlags"][keyof Constants["SystemChannelFlags"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildIntegrationTypes = Constants["GuildIntegrationTypes"][number];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type GuildIntegrationExpireBehavior = Constants["GuildIntegrationExpireBehavior"][keyof Constants["GuildIntegrationExpireBehavior"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Message type ActionRowComponents = Button | SelectMenu;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type Button = InteractionButton | URLButton;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type Component = ActionRow | ActionRowComponents;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ImageFormat = Constants["ImageFormats"][number];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type MessageContent = string | AdvancedMessageContent;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type MFALevel = Constants["MFALevels"][keyof Constants["MFALevels"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type MessageContentEdit = string | AdvancedMessageContentEdit;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type PossiblyUncachedMessage = Message | { channel: TextableChannel | { id: string; guild?: Uncached }; guildID?: string; id: string };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionType = Constants["ApplicationCommandTypes"][keyof Constants["ApplicationCommandTypes"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Interaction type InteractionDataOptions = InteractionDataOptionsSubCommand | InteractionDataOptionsSubCommandGroup | InteractionDataOptionsWithValue;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsWithValue = InteractionDataOptionsString | InteractionDataOptionsInteger | InteractionDataOptionsBoolean | InteractionDataOptionsUser | InteractionDataOptionsChannel | InteractionDataOptionsRole | InteractionDataOptionsMentionable | InteractionDataOptionsNumber;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsString = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["STRING"], string>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsInteger = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["INTEGER"], number>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsBoolean = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["BOOLEAN"], boolean>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsUser = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["USER"], string>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsChannel = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["CHANNEL"], string>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsRole = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["ROLE"], string>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsMentionable = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["MENTIONABLE"], string>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionDataOptionsNumber = InteractionDataOptionWithValue<Constants["ApplicationCommandOptionTypes"]["NUMBER"], number>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionContent = Pick<WebhookPayload, "content" | "embeds" | "allowedMentions" | "tts" | "flags" | "components">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type InteractionEditContent = Pick<WebhookPayload, "content" | "embeds" | "allowedMentions" | "components">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Application Commands type ApplicationCommandOptions = ApplicationCommandOptionsSubCommand | ApplicationCommandOptionsSubCommandGroup | ApplicationCommandOptionsWithValue;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsWithValue = ApplicationCommandOptionsString | ApplicationCommandOptionsInteger | ApplicationCommandOptionsBoolean | ApplicationCommandOptionsUser | ApplicationCommandOptionsChannel | ApplicationCommandOptionsRole | ApplicationCommandOptionsMentionable | ApplicationCommandOptionsNumber;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// String type ApplicationCommandOptionsString = ApplicationCommandOptionsStringWithAutocomplete | ApplicationCommandOptionsStringWithoutAutocomplete;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsStringWithAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["STRING"]>, "choices"> & { autocomplete: true };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsStringWithoutAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["STRING"]>, "autocomplete"> & { autocomplete?: false };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Integer type ApplicationCommandOptionsInteger = ApplicationCommandOptionsIntegerWithAutocomplete | ApplicationCommandOptionsIntegerWithoutAutocomplete;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsIntegerWithAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["INTEGER"]>, "choices"> & { autocomplete: true };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsIntegerWithoutAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["INTEGER"]>, "autocomplete"> & { autocomplete?: false };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Boolean type ApplicationCommandOptionsBoolean = ApplicationCommandOption<Constants["ApplicationCommandOptionTypes"]["BOOLEAN"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// User type ApplicationCommandOptionsUser = ApplicationCommandOption<Constants["ApplicationCommandOptionTypes"]["USER"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Channel type ApplicationCommandOptionsChannel = ApplicationCommandOption<Constants["ApplicationCommandOptionTypes"]["CHANNEL"]> & { channel_types?: ChannelTypes };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Role type ApplicationCommandOptionsRole = ApplicationCommandOption<Constants["ApplicationCommandOptionTypes"]["ROLE"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Mentionable type ApplicationCommandOptionsMentionable = ApplicationCommandOption<Constants["ApplicationCommandOptionTypes"]["MENTIONABLE"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Number type ApplicationCommandOptionsNumber = ApplicationCommandOptionsNumberWithAutocomplete | ApplicationCommandOptionsNumberWithoutAutocomplete;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsNumberWithAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["NUMBER"]>, "choices"> & { autocomplete: true };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandOptionsNumberWithoutAutocomplete = Omit<ApplicationCommandOptionWithChoices<Constants["ApplicationCommandOptionTypes"]["NUMBER"]>, "autocomplete"> & { autocomplete?: false };
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type AnyApplicationCommand = ChatInputApplicationCommand | MessageApplicationCommand | UserApplicationCommand;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ChatInputApplicationCommand = ApplicationCommand<Constants["ApplicationCommandTypes"]["CHAT_INPUT"]>;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type UserApplicationCommand = Omit<ApplicationCommand<Constants["ApplicationCommandTypes"]["USER"]>, "description" | "options">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type MessageApplicationCommand = Omit<ApplicationCommand<Constants["ApplicationCommandTypes"]["MESSAGE"]>, "description" | "options">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ApplicationCommandStructure = ChatInputApplicationCommandStructure | MessageApplicationCommandStructure | UserApplicationCommandStructure;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type ChatInputApplicationCommandStructure = Omit<ChatInputApplicationCommand, "id" | "application_id" | "guild_id">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type MessageApplicationCommandStructure = Omit<MessageApplicationCommand, "id" | "application_id" | "guild_id">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type UserApplicationCommandStructure = Omit<UserApplicationCommand, "id" | "application_id" | "guild_id">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Permission type PermissionType = Constants["PermissionOverwriteTypes"][keyof Constants["PermissionOverwriteTypes"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Presence/Relationship type ActivityType = BotActivityType | Constants["ActivityTypes"]["CUSTOM"];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type BotActivityType = Constants["ActivityTypes"][Exclude<keyof Constants["ActivityTypes"], "CUSTOM">];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type FriendSuggestionReasons = { name: string; platform_type: string; type: number }[];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type Status = "online" | "idle" | "dnd" | "offline";
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Thread type AutoArchiveDuration = 60 | 1440 | 4320 | 10080;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Voice type ConverterCommand = "./ffmpeg" | "./avconv" | "ffmpeg" | "avconv";
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type StageInstancePrivacyLevel = Constants["StageInstancePrivacyLevel"][keyof Constants["StageInstancePrivacyLevel"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Webhook type MessageWebhookContent = Pick<WebhookPayload, "content" | "embeds" | "file" | "allowedMentions" | "components">;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Webhook type WebhookTypes = Constants["WebhookTypes"][keyof Constants["WebhookTypes"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
// Selfbot type ConnectionVisibilityTypes = Constants["ConnectionVisibilityTypes"][keyof Constants["ConnectionVisibilityTypes"]];
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type A<T extends TextableChannel> = T;
oceaann/eris
index.d.ts
TypeScript
TypeAliasDeclaration
type B = A<PublicThreadChannel>;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
static getCreatedAt(id: string): number;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
static getDiscordEpoch(id: string): number;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
inspect(): this;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
toJSON(props?: string[]): JSONCache;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
check(): void;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
queue(func: () => void, priority?: boolean): void;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
close(code?: number, reason?: string): void;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
removeEventListener(event: string | symbol, listener: (...args: any[]) => void): this;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
// @ts-ignore: DOM send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
terminate(): void;
oceaann/eris
index.d.ts
TypeScript
MethodDeclaration
edit(options: Omit<CreateChannelOptions, "permissionOverwrites" | "reason">, reason?: string): Promise<this>;
oceaann/eris
index.d.ts
TypeScript