diff --git a/index.d.ts b/index.d.ts index ca35b1957..da54951a5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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?: { name?: string; value?: string; inline?: boolean }[]; + fields?: { name: string; value: string; inline?: boolean }[]; author?: { name: string; url?: string; icon_url?: string; proxy_icon_url?: string }; } type Embed = { @@ -1330,6 +1330,7 @@ declare namespace Eris { userLimit?: number; rateLimitPerUser?: number; nsfw?: boolean; + parentID?: string; }, reason?: string ): Promise; @@ -1539,7 +1540,7 @@ declare namespace Eris { interface Overwrite { id: string; - type: "user" | "member"; + type: "role" | "member"; allow: number; deny: number; } diff --git a/lib/structures/GuildChannel.js b/lib/structures/GuildChannel.js index 6802b7973..39ae80c8a 100644 --- a/lib/structures/GuildChannel.js +++ b/lib/structures/GuildChannel.js @@ -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 * @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}