mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
Merge branch 'main' into hashes-bigints
This commit is contained in:
@@ -5,6 +5,13 @@ import { createDiscordenoMessage } from "./message.ts";
|
||||
import { createDiscordenoRole } from "./role.ts";
|
||||
import { createDiscordenoVoiceState } from "./voice_state.ts";
|
||||
|
||||
import type { DiscordenoChannel } from "./channel.ts";
|
||||
import type { DiscordenoGuild } from "./guild.ts";
|
||||
import type { DiscordenoMember } from "./member.ts";
|
||||
import type { DiscordenoMessage } from "./message.ts";
|
||||
import type { DiscordenoRole } from "./role.ts";
|
||||
import type { DiscordenoVoiceState } from "./voice_state.ts";
|
||||
|
||||
/** This is the placeholder where the structure creation functions are kept. */
|
||||
export let structures = {
|
||||
createDiscordenoChannel,
|
||||
@@ -15,7 +22,14 @@ export let structures = {
|
||||
createDiscordenoVoiceState,
|
||||
};
|
||||
|
||||
// export type { Channel, Guild, Member, Message, Role, Template };
|
||||
export type {
|
||||
DiscordenoChannel,
|
||||
DiscordenoGuild,
|
||||
DiscordenoMember,
|
||||
DiscordenoMessage,
|
||||
DiscordenoRole,
|
||||
DiscordenoVoiceState,
|
||||
};
|
||||
|
||||
export type Structures = typeof structures;
|
||||
|
||||
@@ -23,7 +37,7 @@ export type Structures = typeof structures;
|
||||
*
|
||||
* ⚠️ **ADVANCED USE ONLY: If you customize this incorrectly, you could potentially create many new errors/bugs.
|
||||
* Please take caution when using this.**
|
||||
*/
|
||||
*/
|
||||
export function updateStructures(newStructures: Structures) {
|
||||
structures = {
|
||||
...structures,
|
||||
|
||||
Reference in New Issue
Block a user