mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
Fix Member: avatarURL() allowed for bots
This commit is contained in:
parent
e60deb6cd9
commit
aa3c2724d3
@ -100,6 +100,10 @@ export class Member implements Model {
|
||||
avatarURL(options: { format?: ImageFormat; size?: ImageSize } = { size: 128 }) {
|
||||
let url: string;
|
||||
|
||||
if (this.user.bot) {
|
||||
return this.user.avatarURL()
|
||||
}
|
||||
|
||||
if (!this.avatarHash) {
|
||||
url = Routes.USER_DEFAULT_AVATAR(Number(this.user.discriminator) % 5);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user