detritus-client
Version:
A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.
14 lines (13 loc) • 712 B
TypeScript
import { RequestTypes } from 'detritus-client-rest';
import { Components } from './components';
export * from './actionbase';
export * from './actionrow';
export * from './button';
export * from './components';
export * from './context';
export * from './selectmenu';
export interface CreateComponentListenerOrNone {
components?: Components | Array<RequestTypes.CreateChannelMessageComponent | RequestTypes.toJSON<RequestTypes.RawChannelMessageComponent>> | RequestTypes.toJSON<Array<RequestTypes.RawChannelMessageComponent>>;
listenerId?: string;
}
export declare function createComponentListenerOrNone(options?: CreateComponentListenerOrNone | string, id?: string): null | [string, Components | null];