feat(Guild): add fetchBan method (#3726)

* Add error for not resolving ID to fetch ban

* Add Guild#fetchBan

* add missing !

* typings

* lint fixes

* add jsdoc description
This commit is contained in:
Sugden
2020-01-24 14:29:53 +00:00
committed by SpaceEEC
parent 63293fe14d
commit c779fe3670
3 changed files with 17 additions and 0 deletions

1
typings/index.d.ts vendored
View File

@@ -733,6 +733,7 @@ declare module 'discord.js' {
public equals(guild: Guild): boolean;
public fetch(): Promise<Guild>;
public fetchAuditLogs(options?: GuildAuditLogsFetchOptions): Promise<GuildAuditLogs>;
public fetchBan(user: UserResolvable): Promise<{ user: User, reason: string }>;
public fetchBans(): Promise<Collection<Snowflake, { user: User, reason: string }>>;
public fetchEmbed(): Promise<GuildEmbedData>;
public fetchIntegrations(): Promise<Collection<string, Integration>>;