Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Mar 9, 2023
1 parent 61b3b4f commit dc81aa2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ declare namespace Eris {
premiumSubscriptionCount?: number;
premiumTier: PremiumTier;
primaryCategory?: DiscoveryCategory;
primaryCategoryID: Number | null;
primaryCategoryID: number | null;
publicUpdatesChannelID: string | null;
rulesChannelID: string | null;
splash: string | null;
Expand Down Expand Up @@ -3263,8 +3263,8 @@ declare namespace Eris {
constructor(data: BaseData, guild?: Guild, client?: Client);
addRole(roleID: string, reason?: string): Promise<void>;
ban(deleteMessageDays?: number, reason?: string): Promise<void>;
edit(options: MemberOptions, reason?: string): Promise<void>;
dynamicAvatarURL(format?: ImageFormat, size?: number): string;
edit(options: MemberOptions, reason?: string): Promise<void>;
kick(reason?: string): Promise<void>;
removeRole(roleID: string, reason?: string): Promise<void>;
unban(reason?: string): Promise<void>;
Expand Down
26 changes: 13 additions & 13 deletions lib/structures/Member.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,19 @@ class Member extends Base {
return this.guild.shard.client.banGuildMember.call(this.guild.shard.client, this.guild.id, this.id, deleteMessageDays, reason);
}

/**
* Get the member's avatar with the given format and size
* @arg {String} [format] The filetype of the avatar ("jpg", "jpeg", "png", "gif", or "webp")
* @arg {Number} [size] The size of the avatar (any power of two between 16 and 4096)
* @returns {String}
*/
dynamicAvatarURL(format, size) {
if(!this.avatar) {
return this.user.dynamicAvatarURL(format, size);
}
return this.guild.shard.client._formatImage(Endpoints.GUILD_AVATAR(this.guild.id, this.id, this.avatar), format, size);
}

/**
* Edit the guild member
* @arg {Object} options The properties to edit
Expand All @@ -226,19 +239,6 @@ class Member extends Base {
return this.guild.shard.client.editGuildMember.call(this.guild.shard.client, this.guild.id, this.id, options, reason);
}

/**
* Get the member's avatar with the given format and size
* @arg {String} [format] The filetype of the avatar ("jpg", "jpeg", "png", "gif", or "webp")
* @arg {Number} [size] The size of the avatar (any power of two between 16 and 4096)
* @returns {String}
*/
dynamicAvatarURL(format, size) {
if(!this.avatar) {
return this.user.dynamicAvatarURL(format, size);
}
return this.guild.shard.client._formatImage(Endpoints.GUILD_AVATAR(this.guild.id, this.id, this.avatar), format, size);
}

/**
* Kick the member from the guild
* @arg {String} [reason] The reason to be displayed in audit logs
Expand Down

0 comments on commit dc81aa2

Please sign in to comment.