This commit is contained in:
DjDeveloperr 2021-02-15 13:38:07 +05:30
parent a800f394ac
commit 98874dd7e7
4 changed files with 6 additions and 5 deletions

1
mod.ts
View File

@ -134,3 +134,4 @@ export { UserFlags } from './src/types/userFlags.ts'
export type { VoiceStatePayload } from './src/types/voice.ts'
export type { WebhookPayload } from './src/types/webhook.ts'
export * from './src/models/collectors.ts'
export type { Dict } from './src/utils/dict.ts'

View File

@ -7,7 +7,6 @@ import {
} from '../types/channel.ts'
import { INTERACTION_CALLBACK, WEBHOOK_MESSAGE } from '../types/endpoint.ts'
import {
Dict,
InteractionApplicationCommandData,
InteractionApplicationCommandOption,
InteractionChannelPayload,
@ -18,6 +17,7 @@ import {
InteractionType,
SlashCommandOptionType
} from '../types/slash.ts'
import { Dict } from '../utils/dict.ts'
import { Permissions } from '../utils/permissions.ts'
import { SnowflakeBase } from './base.ts'
import { Channel } from './channel.ts'

View File

@ -1,3 +1,4 @@
import { Dict } from '../utils/dict.ts'
import {
AllowedMentionsPayload,
ChannelTypes,
@ -25,10 +26,6 @@ export interface InteractionChannelPayload {
type: ChannelTypes
}
export interface Dict<T> {
[name: string]: T
}
export interface InteractionApplicationCommandResolvedPayload {
users?: Dict<UserPayload>
members?: Dict<MemberPayload>

3
src/utils/dict.ts Normal file
View File

@ -0,0 +1,3 @@
export interface Dict<T> {
[name: string]: T
}