type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ClassDeclaration |
export class RequestHandler implements SimpleJSON {
globalBlock: boolean;
latencyRef: LatencyRef;
options: RequestHandlerOptions;
ratelimits: { [route: string]: SequentialBucket };
readyQueue: (() => void)[];
userAgent: string;
constructor(client: Client, options?: RequestHandlerOptions);
... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class Role extends Base {
color: number;
createdAt: number;
guild: Guild;
hoist: boolean;
icon: string | null;
iconURL: string | null;
id: string;
json: Partial<Record<Exclude<keyof Constants["Permissions"], "all" | "allGuild" | "allText" | "allVoice">, boolean>>;
managed: bo... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
class SequentialBucket {
latencyRef: LatencyRef;
limit: number;
processing: boolean;
remaining: number;
reset: number;
constructor(limit: number, latencyRef?: LatencyRef);
check(override?: boolean): void;
queue(func: (cb: () => void) => void, short?: boolean): void;
} | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class Shard extends EventEmitter implements SimpleJSON {
client: Client;
connectAttempts: number;
connecting: boolean;
connectTimeout: NodeJS.Timeout | null;
discordServerTrace?: string[];
getAllUsersCount: { [guildID: string]: boolean };
getAllUsersLength: number;
getAllUsersQue... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class ShardManager extends Collection<Shard> implements SimpleJSON {
connectQueue: Shard[];
connectTimeout: NodeJS.Timer | null;
lastConnect: number;
constructor(client: Client);
connect(shard: Shard): void;
spawn(id: number): void;
tryConnect(): void;
toString(): string;
toJ... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class SharedStream extends EventEmitter {
bitrate: number;
channels: number;
current?: VoiceStreamCurrent;
ended: boolean;
frameDuration: number;
piper: Piper;
playing: boolean;
samplingRate: number;
speaking: boolean;
voiceConnections: Collection<VoiceConnection>;
vo... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class StageChannel extends VoiceChannel {
topic?: string;
type: Constants["ChannelTypes"]["GUILD_STAGE_VOICE"];
createInstance(options: StageInstanceOptions): Promise<StageInstance>;
deleteInstance(): Promise<void>;
editInstance(options: StageInstanceOptions): Promise<StageInstance>;
get... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class StageInstance extends Base {
channel: StageChannel | Uncached;
client: Client;
discoverableDisabled: boolean;
guild: Guild | Uncached;
privacyLevel: StageInstancePrivacyLevel;
topic: string;
constructor(data: BaseData, client: Client);
delete(): Promise<void>;
edit(opti... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class StoreChannel extends GuildChannel {
type: Constants["ChannelTypes"]["GUILD_STORE"];
edit(options: Omit<EditChannelOptions, "icon" | "ownerID">, reason?: string): Promise<this>;
} | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class TextChannel extends GuildChannel implements GuildTextable, Invitable {
defaultAutoArchiveDuration: AutoArchiveDuration;
lastMessageID: string;
lastPinTimestamp: number | null;
messages: Collection<Message<this>>;
rateLimitPerUser: number;
topic: string | null;
type: GuildTextCh... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class ThreadChannel extends GuildChannel implements ThreadTextable {
lastMessageID: string;
lastPinTimestamp?: number;
member?: ThreadMember;
memberCount: number;
members: Collection<ThreadMember>;
messageCount: number;
messages: Collection<Message<this>>;
ownerID: string;
ra... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class ThreadMember extends Base {
flags: number;
guildMember?: Member;
joinTimestamp: number;
threadID: string;
constructor(data: BaseData, client: Client);
leave(): Promise<void>;
update(data: BaseData): void;
} | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class UnavailableGuild extends Base {
createdAt: number;
id: string;
shard: Shard;
unavailable: boolean;
constructor(data: BaseData, client: Client);
} | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class User extends Base {
accentColor?: number | null;
avatar: string | null;
avatarURL: string;
banner?: string | null;
bannerURL: string | null;
bot: boolean;
createdAt: number;
defaultAvatar: string;
defaultAvatarURL: string;
discriminator: string;
id: string;
... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class VoiceChannel extends GuildChannel implements Invitable {
bitrate: number;
rtcRegion: string | null;
type: GuildVoiceChannelTypes;
userLimit: number;
videoQualityMode: VideoQualityMode;
voiceMembers: Collection<Member>;
createInvite(options?: CreateInviteOptions, reason?: string... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class VoiceConnection extends EventEmitter implements SimpleJSON {
bitrate: number;
channelID: string | null;
channels: number;
connecting: boolean;
connectionTimeout: NodeJS.Timeout | null;
current?: VoiceStreamCurrent | null;
ended?: boolean;
endpoint: URL;
frameDuration: n... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class VoiceConnectionManager<T extends VoiceConnection = VoiceConnection> extends Collection<T> implements SimpleJSON {
constructor(vcObject: new () => T);
join(guildID: string, channelID: string, options: VoiceResourceOptions): Promise<VoiceConnection>;
leave(guildID: string): void;
switch(guil... | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class VoiceDataStream extends EventEmitter {
type: "opus" | "pcm";
constructor(type: string);
on(event: "data", listener: (data: Buffer, userID: string, timestamp: number, sequence: number) => void): this;
} | oceaann/eris | index.d.ts | TypeScript |
ClassDeclaration |
export class VoiceState extends Base {
channelID: string | null;
createdAt: number;
deaf: boolean;
id: string;
mute: boolean;
requestToSpeakTimestamp: number | null;
selfDeaf: boolean;
selfMute: boolean;
selfStream: boolean;
selfVideo: boolean;
sessionID: string | null;
... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // TYPES
// Cache
interface Uncached { id: string } | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface InteractionDataOptionsSubCommand {
name: string;
type: Constants["ApplicationCommandOptionTypes"]["SUB_COMMAND"];
options?: InteractionDataOptions[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface InteractionDataOptionsSubCommandGroup {
name: string;
type: Constants["ApplicationCommandOptionTypes"]["SUB_COMMAND_GROUP"];
options: InteractionDataOptions[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface InteractionDataOptionWithValue<T extends (Constants["ApplicationCommandOptionTypes"])[Exclude<keyof Constants["ApplicationCommandOptionTypes"], "SUB_COMMAND" | "SUB_COMMAND_GROUP">] = (Constants["ApplicationCommandOptionTypes"])[Exclude<keyof Constants["ApplicationCommandOptionTypes"], "SUB_COMMAND" | "SUB_C... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface InteractionOptions {
type: Constants["InteractionResponseTypes"][keyof Constants["InteractionResponseTypes"]];
data?: unknown;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandOptionsSubCommand {
type: Constants["ApplicationCommandOptionTypes"]["SUB_COMMAND"];
name: string;
description: string;
required?: boolean;
options?: ApplicationCommandOptionsWithValue[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandOptionsSubCommandGroup {
type: Constants["ApplicationCommandOptionTypes"]["SUB_COMMAND_GROUP"];
name: string;
description: string;
required?: boolean;
options?: (ApplicationCommandOptionsSubCommand | ApplicationCommandOptionsWithValue)[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandOptionChoice<T extends (Constants["ApplicationCommandOptionTypes"])[keyof Pick<Constants["ApplicationCommandOptionTypes"], "STRING" | "INTEGER" | "NUMBER">] | unknown
= unknown> {
name: string;
value: T extends Constants["ApplicationCommandOptionTypes"]["STRING"] ? string :
... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandOptionWithChoices<T extends (Constants["ApplicationCommandOptionTypes"])[keyof Pick<Constants["ApplicationCommandOptionTypes"], "STRING" | "INTEGER" | "NUMBER">]
= (Constants["ApplicationCommandOptionTypes"])[keyof Pick<Constants["ApplicationCommandOptionTypes"], "STRING" | "INTEGER" | "N... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandOption<T extends (Constants["ApplicationCommandOptionTypes"])[Exclude<keyof Constants["ApplicationCommandOptionTypes"], "SUB_COMMAND" | "SUB_COMMAND_GROUP">]> {
type: T;
name: string;
description: string;
required?: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommand<T extends (Constants["ApplicationCommandTypes"])[keyof Constants["ApplicationCommandTypes"]]
= (Constants["ApplicationCommandTypes"])[keyof Constants["ApplicationCommandTypes"]]> {
id: string;
application_id: string;
guild_id?: string;
name: string;
// I think never i... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ApplicationCommandPermissions {
id: string;
type: Constants["ApplicationCommandPermissionTypes"][keyof Constants["ApplicationCommandPermissionTypes"]];
permission: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface GuildApplicationCommandPermissions {
id: string;
application_id: string;
guild_id: string;
permissions?: ApplicationCommandPermissions[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // INTERFACES
// Internals
interface JSONCache {
[s: string]: unknown;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface NestedJSON {
toJSON(arg?: unknown, cache?: (string | unknown)[]): JSONCache;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface SimpleJSON {
toJSON(props?: string[]): JSONCache;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Channel
interface ChannelFollow {
channel_id: string;
webhook_id: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CreateChannelOptions {
bitrate?: number;
nsfw?: boolean;
parentID?: string;
permissionOverwrites?: Overwrite[];
rateLimitPerUser?: number;
reason?: string;
topic?: string;
userLimit?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EditChannelOptions extends Omit<CreateChannelOptions, "permissionOverwrites" | "reason"> {
archived?: boolean;
autoArchiveDuration?: AutoArchiveDuration;
defaultAutoArchiveDuration?: AutoArchiveDuration;
icon?: string;
invitable?: boolean;
locked?: boolean;
name?: string;
owne... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EditChannelPositionOptions {
lockPermissions?: string;
parentID?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface GetMessagesOptions {
after?: string;
around?: string;
before?: string;
limit?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface GuildTextable extends Textable {
lastPinTimestamp: number | null;
rateLimitPerUser: number;
topic: string | null;
createWebhook(options: { name: string; avatar?: string | null }, reason?: string): Promise<Webhook>;
deleteMessages(messageIDs: string[], reason?: string): Promise<void>;
... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface PartialChannel {
bitrate?: number;
id: string;
name?: string;
nsfw?: boolean;
parent_id?: number;
permission_overwrites?: Overwrite[];
rate_limit_per_user?: number;
topic?: string;
type: number;
user_limit?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface PurgeChannelOptions {
after?: string;
before?: string;
filter?: (m: Message<GuildTextableChannel>) => boolean;
limit: number;
reason?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface Textable {
lastMessageID: string;
messages: Collection<Message<this>>;
addMessageReaction(messageID: string, reaction: string): Promise<void>;
/** @deprecated */
addMessageReaction(messageID: string, reaction: string, userID: string): Promise<void>;
createMessage(content: MessageConte... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // @ts-ignore ts(2430) - ThreadTextable can't properly extend Textable because of getMessageReaction deprecated overload
interface ThreadTextable extends Textable {
lastPinTimestamp?: number;
createMessage(content: MessageContent, file?: FileContent | FileContent[]): Promise<Message<ThreadChannel>>;
editMes... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface WebhookData {
channelID: string;
guildID: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Client
interface ClientOptions {
/** @deprecated */
agent?: HTTPSAgent;
allowedMentions?: AllowedMentions;
autoreconnect?: boolean;
compress?: boolean;
connectionTimeout?: number;
defaultImageFormat?: string;
defaultImageSize?: number;
disableEvents?: { [s: string]: boolean };
... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CommandClientOptions {
argsSplitter?: (str: string) => string[];
defaultCommandOptions?: CommandOptions;
defaultHelpCommand?: boolean;
description?: string;
ignoreBots?: boolean;
ignoreSelf?: boolean;
name?: string;
owner?: string;
prefix?: string | string[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface RequestHandlerOptions {
agent?: HTTPSAgent;
baseURL?: string;
decodeReasons?: boolean;
disableLatencyCompensation?: boolean;
domain?: string;
latencyThreshold?: number;
ratelimiterOffset?: number;
requestTimeout?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Command
interface CommandCooldownExclusions {
channelIDs?: string[];
guildIDs?: string[];
userIDs?: string[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CommandOptions {
aliases?: string[];
argsRequired?: boolean;
caseInsensitive?: boolean;
cooldown?: number;
cooldownExclusions?: CommandCooldownExclusions;
cooldownMessage?: MessageContent | GenericCheckFunction<MessageContent> | false;
cooldownReturns?: number;
defaultSubcomma... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CommandReactionButtons extends CommandReactionButtonsOptions {
execute: (msg: Message, args: string[], userID: string) => string | GeneratorFunctionReturn;
responses: ((() => string) | ReactionButtonsGeneratorFunction)[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CommandReactionButtonsOptions {
emoji: string;
filter: ReactionButtonsFilterFunction;
response: string | ReactionButtonsGeneratorFunction;
type: "edit" | "cancel";
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface CommandRequirements {
custom?: GenericCheckFunction<boolean>;
permissions?: { [s: string]: boolean } | GenericCheckFunction<{ [s: string]: boolean }>;
roleIDs?: string[] | GenericCheckFunction<string[]>;
roleNames?: string[] | GenericCheckFunction<string[]>;
userIDs?: string[] | GenericCh... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface Hooks {
postCheck?: (msg: Message, args: string[], checksPassed: boolean) => void;
postCommand?: (msg: Message, args: string[], sent?: Message) => void;
postExecution?: (msg: Message, args: string[], executionSuccess: boolean) => void;
preCommand?: (msg: Message, args: string[]) => void;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Embed
// Omit<T, K> used to override
interface Embed extends Omit<EmbedOptions, "footer" | "image" | "thumbnail" | "author"> {
author?: EmbedAuthor;
footer?: EmbedFooter;
image?: EmbedImage;
provider?: EmbedProvider;
thumbnail?: EmbedImage;
type: string;
video?: EmbedVideo;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedAuthor extends EmbedAuthorOptions {
proxy_icon_url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedAuthorOptions {
icon_url?: string;
name: string;
url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedField {
inline?: boolean;
name: string;
value: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedFooter extends EmbedFooterOptions {
proxy_icon_url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedFooterOptions {
icon_url?: string;
text: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedImage extends EmbedImageOptions {
height?: number;
proxy_url?: string;
width?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedImageOptions {
url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedOptions {
author?: EmbedAuthorOptions;
color?: number;
description?: string;
fields?: EmbedField[];
footer?: EmbedFooterOptions;
image?: EmbedImageOptions;
thumbnail?: EmbedImageOptions;
timestamp?: Date | string;
title?: string;
url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedProvider {
name?: string;
url?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmbedVideo {
height?: number;
url?: string;
width?: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Emoji
interface Emoji extends EmojiBase {
animated: boolean;
available: boolean;
id: string;
managed: boolean;
require_colons: boolean;
roles: string[];
user?: PartialUser;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmojiBase {
icon?: string;
name: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EmojiOptions extends Exclude<EmojiBase, "icon"> {
image: string;
roles?: string[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface PartialEmoji {
id: string | null;
name: string;
animated?: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Events
interface OldCall {
endedTimestamp?: number;
participants: string[];
region: string;
ringing: string[];
unavailable: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldGroupChannel {
name: string;
ownerID: string;
icon: string;
type: Constants["ChannelTypes"]["GROUP_DM"];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldGuild {
afkChannelID: string | null;
afkTimeout: number;
banner: string | null;
defaultNotifications: DefaultNotifications;
description: string | null;
discoverySplash: string | null;
emojis: Omit<Emoji, "user" | "icon">[];
explicitContentFilter: ExplicitContentFilter;
... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldGuildChannel {
bitrate?: number;
name: string;
nsfw?: boolean;
parentID: string | null;
permissionOverwrites: Collection<PermissionOverwrite>;
position: number;
rateLimitPerUser?: number;
rtcRegion?: string | null;
topic?: string | null;
type: GuildChannelTypes;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldGuildTextChannel extends OldGuildChannel {
nsfw: boolean;
rateLimitPerUser: number;
topic: string | null;
type: GuildTextChannelTypes;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldGuildVoiceChannel extends OldGuildChannel {
bitrate: number;
rtcRegion: string | null;
type: GuildVoiceChannelTypes;
userLimit: number;
videoQualityMode: VideoQualityMode;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldMember {
avatar: string | null;
nick: string | null;
pending?: boolean;
premiumSince: number;
roles: string[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldMessage {
attachments: Attachment[];
channelMentions: string[];
content: string;
editedTimestamp?: number;
embeds: Embed[];
flags: number;
mentionedBy?: unknown;
mentions: string[];
pinned: boolean;
roleMentions: string[];
tts: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldRole {
color: number;
hoist: boolean;
icon: string | null;
managed: boolean;
mentionable: boolean;
name: string;
permissions: Permission;
position: number;
unicodeEmoji: string | null;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldStageInstance {
discoverableDisabled: boolean;
privacyLevel: StageInstancePrivacyLevel;
topic: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldThread {
name: string;
rateLimitPerUser: number;
threadMetadata: ThreadMetadata;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldThreadMember {
flags: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface OldVoiceState {
deaf: boolean;
mute: boolean;
selfDeaf: boolean;
selfMute: boolean;
selfStream: boolean;
selfVideo: boolean;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface EventListeners {
callCreate: [call: Call];
callDelete: [call: Call];
callRing: [call: Call];
callUpdate: [call: Call, oldCall: OldCall];
channelCreate: [channel: AnyChannel];
channelDelete: [channel: AnyChannel];
channelPinUpdate: [channel: TextableChannel, timestamp: number, oldT... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ClientEvents extends EventListeners {
shardDisconnect: [err: Error | undefined, id: number];
shardReady: [id: number];
shardResume: [id: number];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface ShardEvents extends EventListeners {
resume: [];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface StreamEvents {
end: [];
error: [err: Error];
start: [];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface VoiceEvents {
connect: [];
debug: [message: string];
disconnect: [err?: Error];
end: [];
error: [err: Error];
pong: [latency: number];
ready: [];
speakingStart: [userID: string];
speakingStop: [userID: string];
start: [];
unknown: [packet: RawPacket];
userDisco... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Gateway/REST
interface HTTPResponse {
code: number;
message: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface LatencyRef {
lastTimeOffsetCheck: number;
latency: number;
raw: number[];
timeOffset: number;
timeOffsets: number[];
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface RawPacket {
d?: unknown;
op: number;
s?: number;
t?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface RawRESTRequest {
auth: boolean;
body?: unknown;
file?: FileContent;
method: string;
resp: IncomingMessage;
route: string;
short: boolean;
url: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface RequestMembersPromise {
members: Member;
received: number;
res: (value: Member[]) => void;
timeout: NodeJS.Timeout;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration | // Guild
interface CreateGuildOptions {
afkChannelID?: string;
afkTimeout?: number;
channels?: PartialChannel[];
defaultNotifications?: DefaultNotifications;
explicitContentFilter?: ExplicitContentFilter;
icon?: string;
roles?: PartialRole[];
systemChannelID: string;
verificationLeve... | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface DiscoveryCategory {
id: number;
is_primary: boolean;
name: {
default: string;
localizations?: { [lang: string]: string };
};
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface DiscoveryMetadata {
category_ids: number[];
emoji_discoverability_enabled: boolean;
guild_id: string;
keywords: string[] | null;
primary_category_id: number;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface DiscoveryOptions {
emojiDiscoverabilityEnabled?: boolean;
keywords?: string[];
primaryCategoryID?: string;
reason?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface DiscoverySubcategoryResponse {
category_id: number;
guild_id: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface GetGuildAuditLogOptions {
actionType?: number;
before?: string;
limit?: number;
userID?: string;
} | oceaann/eris | index.d.ts | TypeScript |
InterfaceDeclaration |
interface GetPruneOptions {
days?: number;
includeRoles?: string[];
} | oceaann/eris | index.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.