fix: 🐛 setBanner #633
This commit is contained in:
parent
7ef1cd60e5
commit
4ceaadf71a
@ -197,10 +197,11 @@ class ClientUser extends User {
|
||||
* .then(user => console.log(`New banner set!`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setBanner(banner) {
|
||||
async setBanner(banner) {
|
||||
if (this.nitroType !== 'NITRO_BOOST') {
|
||||
throw new Error('You must be a Nitro Boosted User to change your banner.');
|
||||
}
|
||||
banner = banner && (await DataResolver.resolveImage(banner));
|
||||
return this.edit({ banner });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user