feat(PartialGroupDMChannel): to support Invite#channel for group dms (#3786)

* add PartialGroupDMChannel class

* fix lint

* add new errors

* add new class to Channel.create

* fix lint

* update typings accordingly

* better implement errors

* remove unnecessary functions

* oops

* lint

* lint

* lint

* more lint

* more lint

* jsdoc typo

* suggested changes

* i did not forget the typings
This commit is contained in:
Sugden
2020-02-22 12:25:27 +00:00
committed by GitHub
parent bea6da621d
commit 161f90761a
4 changed files with 69 additions and 3 deletions

7
typings/index.d.ts vendored
View File

@@ -840,6 +840,13 @@ declare module 'discord.js' {
public nsfw: boolean;
}
export class PartialGroupDMChannel extends Channel {
constructor(client: Client, data: object);
public name: string;
public icon: string | null;
public iconURL(options?: ImageURLOptions): string | null;
}
export class GuildEmoji extends Emoji {
constructor(client: Client, data: object, guild: Guild);
private _roles: string[];