diff --git a/packages/api-types/shared.ts b/packages/api-types/shared.ts index d087e16..4c619d8 100644 --- a/packages/api-types/shared.ts +++ b/packages/api-types/shared.ts @@ -1238,9 +1238,9 @@ export type CamelCase = S extends `${infer P1}_${infer P2}${in export type Camelize = { // deno-lint-ignore ban-types [K in keyof T as CamelCase]: T[K] extends Array ? U extends {} ? Array> - : T[K] - // deno-lint-ignore ban-types - : T[K] extends {} ? Camelize + : T[K] + : // deno-lint-ignore ban-types + T[K] extends {} ? Camelize : never; }; diff --git a/packages/biscuit/structures/ThreadMember.ts b/packages/biscuit/structures/ThreadMember.ts index 7e8af7d..43e402a 100644 --- a/packages/biscuit/structures/ThreadMember.ts +++ b/packages/biscuit/structures/ThreadMember.ts @@ -7,7 +7,7 @@ import * as Routes from '../Routes.ts'; /** * A member that comes from a thread * @link https://discord.com/developers/docs/resources/channel#thread-member-object - * **/ + * * */ export class ThreadMember implements Model { constructor(session: Session, data: DiscordThreadMember) { this.session = session; diff --git a/packages/biscuit/structures/guilds.ts b/packages/biscuit/structures/guilds.ts index da61a24..656bf99 100644 --- a/packages/biscuit/structures/guilds.ts +++ b/packages/biscuit/structures/guilds.ts @@ -751,9 +751,8 @@ 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) - : options.bannerHash && Util.iconBigintToHash(options.bannerHash), + 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) : options.discoverySplashHash && Util.iconBigintToHash(options.discoverySplashHash),