formatting

This commit is contained in:
Nicolás Serna 2022-07-18 18:29:08 -03:00
parent 9dbba9d0c4
commit 63faae768a
3 changed files with 6 additions and 7 deletions

View File

@ -1239,8 +1239,8 @@ export type Camelize<T> = {
// deno-lint-ignore ban-types
[K in keyof T as CamelCase<string & K>]: T[K] extends Array<infer U> ? U extends {} ? Array<Camelize<U>>
: T[K]
// deno-lint-ignore ban-types
: T[K] extends {} ? Camelize<T[K]>
: // deno-lint-ignore ban-types
T[K] extends {} ? Camelize<T[K]>
: never;
};

View File

@ -751,8 +751,7 @@ export class Guild extends BaseGuild implements Model {
splash: 'splashURL' in options
? options.splashURL && urlToBase64(options.splashURL)
: options.iconHash && Util.iconBigintToHash(options.iconHash),
banner: 'bannerURL' in options
? options.bannerURL && urlToBase64(options.bannerURL)
banner: 'bannerURL' in options ? options.bannerURL && urlToBase64(options.bannerURL)
: options.bannerHash && Util.iconBigintToHash(options.bannerHash),
discovery_splash: 'discoverySplashURL' in options
? options.discoverySplashURL && urlToBase64(options.discoverySplashURL)