feat(Invite): add deletable getter (#3203)

* add Invite#deletable

* fix ci

* reee

* since guild is nullable

* accommodate for external invites

* nit(Invite): use guild instead of channel.guild
This commit is contained in:
izexi
2019-04-22 08:24:32 +01:00
committed by SpaceEEC
parent f7f4607b5f
commit c4b79571ba
2 changed files with 15 additions and 1 deletions

3
typings/index.d.ts vendored
View File

@@ -615,7 +615,8 @@ declare module 'discord.js' {
constructor(client: Client, data: object);
public channel: GuildChannel;
public code: string;
public readonly createdAt: Date;
public readonly deletable: boolean;
public readonly createdAt: Date | null;
public createdTimestamp: number | null;
public readonly expiresAt: Date | null;
public readonly expiresTimestamp: number | null;