fix(typings): Guild#member can return null (#3274)

* fix(typings): Guild#member did not have undefined as a return type

* oops, it can apparently return null
This commit is contained in:
didinele
2019-05-16 22:14:46 +03:00
committed by SpaceEEC
parent 1bafa4b86b
commit 97de79bd5e

2
typings/index.d.ts vendored
View File

@@ -459,7 +459,7 @@ declare module 'discord.js' {
public fetchEmbed(): Promise<GuildEmbedData>;
public iconURL(options?: AvatarOptions): string;
public leave(): Promise<Guild>;
public member(user: UserResolvable): GuildMember;
public member(user: UserResolvable): GuildMember | null;
public setAFKChannel(afkChannel: ChannelResolvable, reason?: string): Promise<Guild>;
public setAFKTimeout(afkTimeout: number, reason?: string): Promise<Guild>;
public setChannelPositions(channelPositions: ChannelPosition[]): Promise<Guild>;