fix: document ChannelData#reason (#3549)

* fix: document ChannelData#reason

* update respective typings
* closes #3548

* update: add note creation only

Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
Souji
2019-10-22 21:17:56 +02:00
committed by SpaceEEC
parent 2610bf57ae
commit 7011c512fb
2 changed files with 2 additions and 0 deletions

View File

@@ -303,6 +303,7 @@ class GuildChannel extends Channel {
* @property {ChannelCreationOverwrites[]|Collection<Snowflake, PermissionOverwrites>} [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)
*/
/**

1
typings/index.d.ts vendored
View File

@@ -1706,6 +1706,7 @@ declare module 'discord.js' {
parent?: ChannelResolvable;
permissionOverwrites?: PermissionOverwrites[] | ChannelCreationOverwrites[];
rateLimitPerUser?: number;
reason?: string;
};
type ChannelLogsQueryOptions = {