Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumap committed Jun 18, 2021
1 parent 3cf6ee1 commit c839c92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class Client extends EventEmitter {

avatarURL(
userId: bigint,
discriminator: number,
discriminator: string,
avatar: bigint,
animated: boolean,
size?: DiscordImageSize,
Expand Down
4 changes: 2 additions & 2 deletions src/Structures/UniversityMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class UniversityMember extends Base {
/** The username of the member */
username!: string;
/** The user's 4-digit discord-tag */
discriminator!: number;
discriminator!: string;
/** The users avatar hash */
avatar: bigint;
/** The guild related data mapped by guild id */
Expand Down Expand Up @@ -59,7 +59,7 @@ export class UniversityMember extends Base {

update(payload: GuildMemberWithUser, guildId: bigint) {
this.username = payload.user.username;
this.discriminator = Number(payload.user.discriminator);
this.discriminator = payload.user.discriminator;
if (payload.user.email) this.email = payload.user.email;
this.locale = payload.user.locale;
this.flags = payload.user.flags;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Helpers/Members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class MemberHelpers {
/** The users custom avatar or the default avatar if you don't have a member object. */
avatarURL(
userId: bigint,
discriminator: number,
discriminator: string,
options: {
avatar?: string | bigint;
size?: DiscordImageSize;
Expand Down

0 comments on commit c839c92

Please sign in to comment.