fix
This commit is contained in:
parent
a800f394ac
commit
98874dd7e7
4 changed files with 6 additions and 5 deletions
1
mod.ts
1
mod.ts
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
3
src/utils/dict.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export interface Dict<T> {
|
||||
[name: string]: T
|
||||
}
|
Loading…
Reference in a new issue