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 typings typos #560

Merged
merged 8 commits into from Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.d.ts
Expand Up @@ -372,7 +372,7 @@ declare namespace Eris {
thumbnail?: { url?: string; proxy_url?: string; height?: number; width?: number };
video?: { url: string; height?: number; width?: number };
provider?: { name: string; url?: string };
fields?: Array<{ name?: string; value?: string; inline?: boolean }>;
fields?: Array<{ name: string; value: string; inline?: boolean }>;
author?: { name: string; url?: string; icon_url?: string; proxy_icon_url?: string };
}
type Embed = {
Expand Down Expand Up @@ -1330,6 +1330,7 @@ declare namespace Eris {
userLimit?: number;
rateLimitPerUser?: number;
nsfw?: boolean;
parentID?: string;
},
reason?: string
): Promise<AnyGuildChannel>;
Expand Down Expand Up @@ -1539,7 +1540,7 @@ declare namespace Eris {

interface Overwrite {
id: string;
type: "user" | "member";
type: "role" | "member";
allow: number;
deny: number;
}
Expand Down
1 change: 1 addition & 0 deletions lib/structures/GuildChannel.js
Expand Up @@ -86,6 +86,7 @@ class GuildChannel extends Channel {
* @arg {Number} [options.bitrate] The bitrate of the channel (guild voice channels only)
* @arg {Number} [options.userLimit] The channel user limit (guild voice channels only)
* @arg {Number} [options.rateLimitPerUser] The time in seconds a user has to wait before sending another message (does not affect bots or users with manageMessages/manageChannel permissions) (guild text channels only)
* @arg {Boolean} [options.nsfw] The nsfw status of the channel (guild channels only)
abalabahaha marked this conversation as resolved.
Show resolved Hide resolved
* @arg {Number?} [options.parentID] The ID of the parent channel category for this channel (guild text/voice channels only)
* @arg {String} [reason] The reason to be displayed in audit logs
* @returns {Promise<CategoryChannel | TextChannel | VoiceChannel | NewsChannel>}
Expand Down