mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
feat(GuildMember): add guild avatars (#5696)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com> Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com>
This commit is contained in:
11
typings/index.d.ts
vendored
11
typings/index.d.ts
vendored
@@ -873,6 +873,7 @@ export class GuildEmoji extends BaseGuildEmoji {
|
||||
|
||||
export class GuildMember extends PartialTextBasedChannel(Base) {
|
||||
public constructor(client: Client, data: RawGuildMemberData, guild: Guild);
|
||||
public avatar: string | null;
|
||||
public readonly bannable: boolean;
|
||||
public deleted: boolean;
|
||||
public readonly displayColor: number;
|
||||
@@ -894,10 +895,12 @@ export class GuildMember extends PartialTextBasedChannel(Base) {
|
||||
public readonly roles: GuildMemberRoleManager;
|
||||
public user: User;
|
||||
public readonly voice: VoiceState;
|
||||
public avatarURL(options?: ImageURLOptions): string | null;
|
||||
public ban(options?: BanOptions): Promise<GuildMember>;
|
||||
public fetch(force?: boolean): Promise<GuildMember>;
|
||||
public createDM(force?: boolean): Promise<DMChannel>;
|
||||
public deleteDM(): Promise<DMChannel>;
|
||||
public displayAvatarURL(options?: ImageURLOptions): string;
|
||||
public edit(data: GuildMemberEditData, reason?: string): Promise<GuildMember>;
|
||||
public kick(reason?: string): Promise<GuildMember>;
|
||||
public permissionsIn(channel: GuildChannelResolvable): Readonly<Permissions>;
|
||||
@@ -2297,6 +2300,14 @@ export const Constants: {
|
||||
size: AllowedImageSize,
|
||||
dynamic: boolean,
|
||||
) => string;
|
||||
GuildMemberAvatar: (
|
||||
guildId: Snowflake,
|
||||
memberId: Snowflake,
|
||||
hash: string,
|
||||
format?: DynamicImageFormat,
|
||||
size?: AllowedImageSize,
|
||||
dynamic?: boolean,
|
||||
) => string;
|
||||
Icon: (
|
||||
guildId: Snowflake,
|
||||
hash: string,
|
||||
|
||||
Reference in New Issue
Block a user