diff --git a/README.md b/README.md index 5ce3059..2cb53fa 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ that you should not make software that does things it is not supposed to do. ### Example bot (TS/JS) ```js -import { GatewayIntents, Session } from "biscuit"; +import { GatewayIntents, Session } from "@oasisjs/biscuit"; const token = "your token goes here"; @@ -76,3 +76,9 @@ session.start(); - We got the library running on EndeavourOS but it spams the ready event multiple times - We got the library running on Arch/Artix Linux but breaks when sending fetch requests - We got the library running on WSL (Ubuntu) without any trouble + +### Known issues: +* some properties may be not implemented yet (eg: Message.stickers) +* 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 diff --git a/mod.ts b/mod.ts index c8684fa..bea564f 100644 --- a/mod.ts +++ b/mod.ts @@ -1,3 +1,8 @@ +import Session from "./packages/biscuit/mod.ts"; + +export default Session; + export * from "./packages/biscuit/mod.ts"; export * from "./packages/discordeno/mod.ts"; export * from "./packages/cache/mod.ts"; +export { default as enableCache } from "./packages/cache/mod.ts"; diff --git a/packages/biscuit/mod.ts b/packages/biscuit/mod.ts index c561bd4..0fba7e2 100644 --- a/packages/biscuit/mod.ts +++ b/packages/biscuit/mod.ts @@ -2,18 +2,27 @@ import { Session } from "./Session.ts"; export default Session; +export * from "./structures/Application.ts"; export * from "./structures/Attachment.ts"; +export * from "./structures/AutoModerationExecution.ts"; +export * from "./structures/AutoModerationRule.ts"; export * from "./structures/Base.ts"; export * from "./structures/Embed.ts"; export * from "./structures/Emoji.ts"; export * from "./structures/GuildEmoji.ts"; +export * from "./structures/GuildScheduledEvent.ts"; +export * from "./structures/Integration.ts"; export * from "./structures/Invite.ts"; export * from "./structures/Member.ts"; export * from "./structures/Message.ts"; export * from "./structures/MessageReaction.ts"; export * from "./structures/Permissions.ts"; +export * from "./structures/Presence.ts"; export * from "./structures/Role.ts"; +export * from "./structures/StageInstance.ts"; +export * from "./structures/ThreadMember.ts"; export * from "./structures/User.ts"; +export * from "./structures/Webhook.ts"; export * from "./structures/WelcomeChannel.ts"; export * from "./structures/WelcomeScreen.ts"; diff --git a/packages/biscuit/structures/StageInstance.ts b/packages/biscuit/structures/StageInstance.ts index 5c74c61..b087228 100644 --- a/packages/biscuit/structures/StageInstance.ts +++ b/packages/biscuit/structures/StageInstance.ts @@ -4,7 +4,7 @@ import type { Snowflake } from "../Snowflake.ts"; import type { DiscordStageInstance as DiscordAutoClosingStageInstance } from "../../discordeno/mod.ts"; import * as Routes from "../Routes.ts"; -export interface DiscordStageInstance extends DiscordAutoClosingStageInstance { +interface DiscordStageInstance extends DiscordAutoClosingStageInstance { privacy_level: PrivacyLevels; discoverable_disabled: boolean; guild_scheduled_event_id: Snowflake;