Merge branch 'main' into hashes-bigints

This commit is contained in:
Skillz4Killz
2021-05-07 09:02:36 -04:00
committed by GitHub
6 changed files with 31 additions and 19 deletions

View File

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