mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 13:06:08 +00:00
fix: fmt
This commit is contained in:
parent
723548e5f2
commit
dec7f63b43
10
README.md
10
README.md
@ -1,6 +1,7 @@
|
|||||||
# biscuit
|
# biscuit
|
||||||
|
|
||||||
## A brand new bleeding edge non bloated Discord library
|
## A brand new bleeding edge non bloated Discord library
|
||||||
|
|
||||||
<img align="middle" src="https://raw.githubusercontent.com/oasisjs/biscuit/main/assets/biscuit.svg" alt="biscuit" />
|
<img align="middle" src="https://raw.githubusercontent.com/oasisjs/biscuit/main/assets/biscuit.svg" alt="biscuit" />
|
||||||
|
|
||||||
ETA: **biscuit will be on the npm registry the next week!**
|
ETA: **biscuit will be on the npm registry the next week!**
|
||||||
@ -79,7 +80,8 @@ session.start();
|
|||||||
- We got the library running on WSL (Ubuntu) without any trouble
|
- We got the library running on WSL (Ubuntu) without any trouble
|
||||||
|
|
||||||
### Known issues:
|
### Known issues:
|
||||||
* some properties may be not implemented yet
|
|
||||||
* some structures are not implemented (see https://github.com/oasisjs/biscuit/issues)
|
- some properties may be not implemented yet
|
||||||
* cache (wip)
|
- some structures are not implemented (see https://github.com/oasisjs/biscuit/issues)
|
||||||
* no optimal way to create embeds, should be fixed in builders tho
|
- cache (wip)
|
||||||
|
- no optimal way to create embeds, should be fixed in builders tho
|
||||||
|
3
egg.json
3
egg.json
@ -4,14 +4,13 @@
|
|||||||
"entry": "./mod.ts",
|
"entry": "./mod.ts",
|
||||||
"description": "A brand new bleeding edge non bloated Discord library",
|
"description": "A brand new bleeding edge non bloated Discord library",
|
||||||
"homepage": "https://github.com/oasisjs/biscuit",
|
"homepage": "https://github.com/oasisjs/biscuit",
|
||||||
"version": "0.0.1",
|
"version": "0.1.0",
|
||||||
"releaseType": "minor",
|
"releaseType": "minor",
|
||||||
"unstable": false,
|
"unstable": false,
|
||||||
"unlisted": false,
|
"unlisted": false,
|
||||||
"files": [
|
"files": [
|
||||||
"./packages/**/*",
|
"./packages/**/*",
|
||||||
"./mod.ts",
|
"./mod.ts",
|
||||||
"./deps.ts",
|
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Deno example
|
* Deno example
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "https://deno.land/std@0.146.0/dotenv/load.ts";
|
import "https://deno.land/std@0.146.0/dotenv/load.ts";
|
||||||
// TODO: remove and include the library appropriately
|
// TODO: remove and include the library appropriately
|
||||||
|
@ -14,7 +14,7 @@ import type {
|
|||||||
import { TargetTypes } from "../../discordeno/mod.ts";
|
import { TargetTypes } from "../../discordeno/mod.ts";
|
||||||
import { GuildChannel } from "./channels.ts";
|
import { GuildChannel } from "./channels.ts";
|
||||||
import { Member } from "./Member.ts";
|
import { Member } from "./Member.ts";
|
||||||
import { InviteGuild, Guild } from "./guilds.ts";
|
import { Guild, InviteGuild } from "./guilds.ts";
|
||||||
import User from "./User.ts";
|
import User from "./User.ts";
|
||||||
import Application from "./Application.ts";
|
import Application from "./Application.ts";
|
||||||
|
|
||||||
|
@ -137,9 +137,9 @@ export class Message implements Model {
|
|||||||
return {
|
return {
|
||||||
id: si.id,
|
id: si.id,
|
||||||
name: si.name,
|
name: si.name,
|
||||||
formatType: si.format_type
|
formatType: si.format_type,
|
||||||
}
|
};
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import * as Routes from "../Routes.ts";
|
|||||||
/**
|
/**
|
||||||
* A member that comes from a thread
|
* A member that comes from a thread
|
||||||
* @link https://discord.com/developers/docs/resources/channel#thread-member-object
|
* @link https://discord.com/developers/docs/resources/channel#thread-member-object
|
||||||
* * */
|
* **/
|
||||||
export class ThreadMember implements Model {
|
export class ThreadMember implements Model {
|
||||||
constructor(session: Session, data: DiscordThreadMember) {
|
constructor(session: Session, data: DiscordThreadMember) {
|
||||||
this.session = session;
|
this.session = session;
|
||||||
|
@ -1,6 +1,22 @@
|
|||||||
import type { Model } from "./Base.ts";
|
import type { Model } from "./Base.ts";
|
||||||
import type { Session } from "../Session.ts";
|
import type { Session } from "../Session.ts";
|
||||||
import type { ChannelTypes, DefaultMessageNotificationLevels, DiscordEmoji, DiscordGuild, DiscordInviteMetadata, DiscordListActiveThreads, DiscordMemberWithUser, DiscordOverwrite, DiscordRole, ExplicitContentFilterLevels, GuildNsfwLevel, MakeRequired, SystemChannelFlags, VerificationLevels, VideoQualityModes } from "../../discordeno/mod.ts";
|
import type {
|
||||||
|
ChannelTypes,
|
||||||
|
DefaultMessageNotificationLevels,
|
||||||
|
DiscordEmoji,
|
||||||
|
DiscordGuild,
|
||||||
|
DiscordInviteMetadata,
|
||||||
|
DiscordListActiveThreads,
|
||||||
|
DiscordMemberWithUser,
|
||||||
|
DiscordOverwrite,
|
||||||
|
DiscordRole,
|
||||||
|
ExplicitContentFilterLevels,
|
||||||
|
GuildNsfwLevel,
|
||||||
|
MakeRequired,
|
||||||
|
SystemChannelFlags,
|
||||||
|
VerificationLevels,
|
||||||
|
VideoQualityModes,
|
||||||
|
} from "../../discordeno/mod.ts";
|
||||||
import type { ImageFormat, ImageSize } from "../Util.ts";
|
import type { ImageFormat, ImageSize } from "../Util.ts";
|
||||||
import { GuildFeatures } from "../../discordeno/mod.ts";
|
import { GuildFeatures } from "../../discordeno/mod.ts";
|
||||||
import { Snowflake } from "../Snowflake.ts";
|
import { Snowflake } from "../Snowflake.ts";
|
||||||
@ -675,8 +691,9 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
splash: "splashURL" in options
|
splash: "splashURL" in options
|
||||||
? options.splashURL || urlToBase64(options.splashURL!)
|
? options.splashURL || urlToBase64(options.splashURL!)
|
||||||
: options.splashHash || Util.iconBigintToHash(options.iconHash!),
|
: options.splashHash || Util.iconBigintToHash(options.iconHash!),
|
||||||
banner: "bannerURL" in options ? options.bannerURL || urlToBase64(options.bannerURL!)
|
banner: "bannerURL" in options
|
||||||
: options.bannerHash || Util.iconBigintToHash(options.bannerHash!),
|
? options.bannerURL || urlToBase64(options.bannerURL!)
|
||||||
|
: options.bannerHash || Util.iconBigintToHash(options.bannerHash!),
|
||||||
discovery_splash: "discoverySplashURL" in options
|
discovery_splash: "discoverySplashURL" in options
|
||||||
? options.discoverySplashURL || urlToBase64(options.discoverySplashURL!)
|
? options.discoverySplashURL || urlToBase64(options.discoverySplashURL!)
|
||||||
: options.discoverySplashHash || Util.iconBigintToHash(options.discoverySplashHash!),
|
: options.discoverySplashHash || Util.iconBigintToHash(options.discoverySplashHash!),
|
||||||
@ -693,4 +710,4 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Guild
|
export default Guild;
|
||||||
|
@ -1237,7 +1237,7 @@ export type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${in
|
|||||||
: Lowercase<S>;
|
: Lowercase<S>;
|
||||||
export type Camelize<T> = {
|
export type Camelize<T> = {
|
||||||
[K in keyof T as CamelCase<string & K>]: T[K] extends Array<infer U> ? U extends {} ? Array<Camelize<U>>
|
[K in keyof T as CamelCase<string & K>]: T[K] extends Array<infer U> ? U extends {} ? Array<Camelize<U>>
|
||||||
: T[K]
|
: T[K]
|
||||||
: T[K] extends {} ? Camelize<T[K]>
|
: T[K] extends {} ? Camelize<T[K]>
|
||||||
: never;
|
: never;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user