This commit is contained in:
Yuzu 2022-07-13 13:16:56 -05:00
parent 723548e5f2
commit dec7f63b43
8 changed files with 727 additions and 709 deletions

View File

@ -1,6 +1,7 @@
# biscuit
## 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" />
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
### Known issues:
* some properties may be not implemented yet
* some structures are not implemented (see https://github.com/oasisjs/biscuit/issues)
* cache (wip)
* no optimal way to create embeds, should be fixed in builders tho
- some properties may be not implemented yet
- some structures are not implemented (see https://github.com/oasisjs/biscuit/issues)
- cache (wip)
- no optimal way to create embeds, should be fixed in builders tho

View File

@ -4,14 +4,13 @@
"entry": "./mod.ts",
"description": "A brand new bleeding edge non bloated Discord library",
"homepage": "https://github.com/oasisjs/biscuit",
"version": "0.0.1",
"version": "0.1.0",
"releaseType": "minor",
"unstable": false,
"unlisted": false,
"files": [
"./packages/**/*",
"./mod.ts",
"./deps.ts",
"LICENSE",
"README.md"
],

View File

@ -1,6 +1,6 @@
/**
* Deno example
*/
*/
import "https://deno.land/std@0.146.0/dotenv/load.ts";
// TODO: remove and include the library appropriately

View File

@ -14,7 +14,7 @@ import type {
import { TargetTypes } from "../../discordeno/mod.ts";
import { GuildChannel } from "./channels.ts";
import { Member } from "./Member.ts";
import { InviteGuild, Guild } from "./guilds.ts";
import { Guild, InviteGuild } from "./guilds.ts";
import User from "./User.ts";
import Application from "./Application.ts";

View File

@ -137,9 +137,9 @@ export class Message implements Model {
return {
id: si.id,
name: si.name,
formatType: si.format_type
}
})
formatType: si.format_type,
};
});
}
}

View File

@ -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;

File diff suppressed because it is too large Load Diff

View File

@ -1237,7 +1237,7 @@ export type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${in
: Lowercase<S>;
export type Camelize<T> = {
[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]>
: never;
};