fix typings

This commit is contained in:
Jacob Nguyen
2024-05-28 13:43:56 -05:00
parent 792015a64e
commit c8230334f2
2 changed files with 5 additions and 2 deletions

View File

@@ -14,16 +14,19 @@ import * as assert from 'assert';
import type { ReplyOptions } from '../../types/utility';
import { fmt } from '../functions'
type ShitType = ChatInputCommandInteraction['options']
/**
* @since 1.0.0
* Provides values shared between
* Message and ChatInputCommandInteraction
*/
export class Context extends CoreContext<Message, ChatInputCommandInteraction> {
get options() {
return this.interaction.options;
}
args(type: 'message') : string[]
args(type: 'interaction') : ShitType
//TODO
args(type: 'message'|'interaction') {
switch(type) {

View File

@@ -24,7 +24,7 @@ import { Awaitable, SernEventsMapping } from './utility';
export type SDT = {
state: Record<string,unknown>;
deps: Dependencies;
type: 'slash' | 'text',
type: CommandType,
params?: string
};