import { ClientOptions } from "discord.js"; import { Context } from "../main/index.js"; export interface MessageIntentOptions { withReaction?: true; withTyping?: true; } /** * Utility class that help you construct Intents and Partials in *Cocoa* way, * these are used to register event listener to Discord * * It is best practice to request for only what you need, * this also improve performance of your bot. * * For more information, see * - {@link https://discord.com/developers/docs/topics/gateway#gateway-intents} * - {@link https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events} */ export declare class CocoaIntent implements Pick { intents: number[]; partials: number[]; /** Push elements to `intents` */ addIntents(...items: number[]): this; /** Push elements to `partials` */ addPartials(...items: number[]): this; /** * Add `Guilds` * * This is **required** if you are syncing commands by guild */ useGuild(): this; /** * Add `GuildMessages` * * `useGuild` is also required for this to work * * @param withReaction Use this if you want to recieve information about reactions change * @param withTyping Use this if you want to recieve information about user is typing */ useGuildMessage(options?: MessageIntentOptions): this; /** * Add `MessageContent`, **THIS IS PRIVILEGED INTENT** * * Only use this if your bot wants to read every message, * {@link useGuildMessage} alone will work if your bot only react * to message mentioning it or from Direct Message. * * If you use Message Center with prefix, this is required intent. */ useReadMessage(): this; /** * @param withReaction Use this if you want to recieve information about reactions change * @param withTyping Use this if you want to recieve information about user is typing */ useDirectMessage(options?: MessageIntentOptions): this; /** * Add `GUILD_VOICE_STATES`, * this is required if you use `@leomotors/music-bot` */ useGuildVoice(): this; } /** Get User who create `Context` (`Message` or `Interaction`) */ export declare function Author(ctx: Context): { name: string; iconURL: string; }; //# sourceMappingURL=options.d.ts.map