mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
Some build process stuff
This commit is contained in:
@@ -8,7 +8,6 @@ import { Context } from '../../types/context';
|
||||
import { type DiscordMessage, Message } from '../../types/message';
|
||||
import { DiscordUser, User } from '../../types/user';
|
||||
import { Guild } from '../../types/guild';
|
||||
import { Channel } from '../../types/channel';
|
||||
import type { Emitter } from '../bus';
|
||||
|
||||
export class Gateway {
|
||||
|
||||
@@ -66,6 +66,7 @@ export class Processor {
|
||||
await Promise.resolve(handler[Trait.execute](context!, resolvedArgs));
|
||||
} else {
|
||||
// TODO: Fix ts error
|
||||
// @ts-ignore - Haven't figured out how to type narrow this yet
|
||||
await Promise.resolve(handler(context, argsOrPayload));
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
import type { Message } from './message';
|
||||
import { Message } from './message';
|
||||
|
||||
type EmbedFooter = {
|
||||
text: string;
|
||||
@@ -42,7 +42,7 @@ export class Embed {
|
||||
author?: EmbedImage & {
|
||||
name?: string;
|
||||
};
|
||||
fields?: EmbedField[];
|
||||
fields: EmbedField[];
|
||||
|
||||
constructor() {
|
||||
this.fields = [];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { exists, isNil } from '../utils';
|
||||
import { GatewayObject } from './base';
|
||||
import { fromDiscord, Trait, type Expectation, type Expects } from './common';
|
||||
import { Embed } from './embed';
|
||||
import type { Embed } from './embed';
|
||||
import type { Guild } from './guild';
|
||||
import { DiscordUser, User } from './user';
|
||||
import { type DiscordUser, User } from './user';
|
||||
|
||||
export type Component = Partial<Button | SelectMenu> & {
|
||||
type: ComponentType;
|
||||
|
||||
Reference in New Issue
Block a user