File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,20 @@ test('guildMemberAvatar dynamic-not-animated', () => {
76
76
expect ( cdn . guildMemberAvatar ( id , id , hash ) ) . toEqual ( `${ baseCDN } /guilds/${ id } /users/${ id } /avatars/${ hash } .webp` ) ;
77
77
} ) ;
78
78
79
+ test ( 'guildMemberBanner default' , ( ) => {
80
+ expect ( cdn . guildMemberBanner ( id , id , hash ) ) . toEqual ( `${ baseCDN } /guilds/${ id } /users/${ id } /banners/${ hash } .webp` ) ;
81
+ } ) ;
82
+
83
+ test ( 'guildMemberBanner dynamic-animated' , ( ) => {
84
+ expect ( cdn . guildMemberBanner ( id , id , animatedHash ) ) . toEqual (
85
+ `${ baseCDN } /guilds/${ id } /users/${ id } /banners/${ animatedHash } .gif` ,
86
+ ) ;
87
+ } ) ;
88
+
89
+ test ( 'guildMemberBanner dynamic-not-animated' , ( ) => {
90
+ expect ( cdn . guildMemberBanner ( id , id , hash ) ) . toEqual ( `${ baseCDN } /guilds/${ id } /users/${ id } /banners/${ hash } .webp` ) ;
91
+ } ) ;
92
+
79
93
test ( 'guildScheduledEventCover default' , ( ) => {
80
94
expect ( cdn . guildScheduledEventCover ( id , hash ) ) . toEqual ( `${ baseCDN } /guild-events/${ id } /${ hash } .webp` ) ;
81
95
} ) ;
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export class CDN {
254
254
bannerHash : string ,
255
255
options ?: Readonly < ImageURLOptions > ,
256
256
) : string {
257
- return this . dynamicMakeURL ( `/guilds/${ guildId } /users/${ userId } /banner ` , bannerHash , options ) ;
257
+ return this . dynamicMakeURL ( `/guilds/${ guildId } /users/${ userId } /banners/ ${ bannerHash } ` , bannerHash , options ) ;
258
258
}
259
259
260
260
/**
You can’t perform that action at this time.
0 commit comments