detritus-client
Version:
A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.
31 lines (30 loc) • 1.23 kB
TypeScript
import { BaseCollection } from '../collections/basecollection';
import { ChannelGuildThread, ThreadMember, User } from '../structures';
export declare namespace RestResponses {
interface FetchChannelThreadsActive {
hasMore: boolean;
members: BaseCollection<string, BaseCollection<string, ThreadMember>>;
threads: BaseCollection<string, ChannelGuildThread>;
}
interface FetchChannelThreadsArchivedPrivate {
hasMore: boolean;
members: BaseCollection<string, BaseCollection<string, ThreadMember>>;
threads: BaseCollection<string, ChannelGuildThread>;
}
interface FetchChannelThreadsArchivedPrivateJoined {
hasMore: boolean;
members: BaseCollection<string, BaseCollection<string, ThreadMember>>;
threads: BaseCollection<string, ChannelGuildThread>;
}
interface FetchChannelThreadsArchivedPublic {
hasMore: boolean;
members: BaseCollection<string, BaseCollection<string, ThreadMember>>;
threads: BaseCollection<string, ChannelGuildThread>;
}
interface FetchGuildBans extends BaseCollection<string, RawGuildBan> {
}
interface RawGuildBan {
reason: null | string;
user: User;
}
}