From 7011c512fb0c4a71682d5c53679e7fa27953dfab Mon Sep 17 00:00:00 2001 From: Souji Date: Tue, 22 Oct 2019 21:17:56 +0200 Subject: [PATCH] fix: document ChannelData#reason (#3549) * fix: document ChannelData#reason * update respective typings * closes #3548 * update: add note creation only Co-Authored-By: SpaceEEC --- src/structures/GuildChannel.js | 1 + typings/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index fb32b141d..1659e103c 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -303,6 +303,7 @@ class GuildChannel extends Channel { * @property {ChannelCreationOverwrites[]|Collection} [permissionOverwrites] * Overwrites of the channel * @property {number} [rateLimitPerUser] The rate limit per user of the channel in seconds + * @property {string} [reason] Reason for creating the channel (Only when creating) */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index 37816cc17..0b7694b85 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1706,6 +1706,7 @@ declare module 'discord.js' { parent?: ChannelResolvable; permissionOverwrites?: PermissionOverwrites[] | ChannelCreationOverwrites[]; rateLimitPerUser?: number; + reason?: string; }; type ChannelLogsQueryOptions = {