mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
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:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user