types: add all types for GuildAuditLogsEntry#target (#4738)

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
Tristan Guichaoua
2020-08-28 14:18:45 +02:00
committed by GitHub
parent 46acfac327
commit 2dc70af717

13
typings/index.d.ts vendored
View File

@@ -748,7 +748,18 @@ declare module 'discord.js' {
public extra: object | Role | GuildMember | null;
public id: Snowflake;
public reason: string | null;
public target: Guild | User | Role | GuildEmoji | Invite | Webhook | Integration | null;
public target:
| Guild
| GuildChannel
| User
| Role
| GuildEmoji
| Invite
| Webhook
| Message
| Integration
| { id: Snowflake }
| null;
public targetType: GuildAuditLogsTarget;
public toJSON(): object;
}