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