Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typescript mistakes #1097

Merged
merged 4 commits into from
Mar 24, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 6 additions & 30 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1243,16 +1243,21 @@ declare namespace Eris {
}

export class Client extends EventEmitter {
bot?: boolean;
bot: boolean;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
channelGuildMap: { [s: string]: string };
gatewayURL?: string;
groupChannels: Collection<GroupChannel>;
guilds: Collection<Guild>;
guildShardMap: { [s: string]: number };
lastConnect: number;
lastReconnectDelay: number;
notes: { [s: string]: string };
options: ClientOptions;
presence: Presence;
privateChannelMap: { [s: string]: string };
privateChannels: Collection<PrivateChannel>;
ready: boolean;
reconnectAttempts: number;
relationships: Collection<Relationship>;
requestHandler: RequestHandler;
shards: ShardManager;
Expand Down Expand Up @@ -1696,35 +1701,6 @@ declare namespace Eris {
removeRecipient(userID: string): Promise<void>;
}

interface DiscoveryMetadata {
guild_id: string;
primary_category_id: number;
keywords: string[] | null;
emoji_discoverability_enabled: boolean;
category_ids: number[];
}

interface DiscoveryOptions {
primaryCategoryID?: string;
keywords?: string[];
emojiDiscoverabilityEnabled?: boolean;
reason?: string;
}

interface DiscoveryCategory {
id: number;
name: {
default: string;
localizations?: { [lang: string]: string };
};
is_primary: boolean;
}

interface DiscoverySubcategoryResponse {
guild_id: string;
category_id: number;
}

export class Guild extends Base {
afkChannelID: string | null;
afkTimeout: number;
Expand Down