djs-systems
Version:
The simplest way to build complex Discord bots.
41 lines (40 loc) • 1.39 kB
TypeScript
import { User } from 'discord.js';
import { CustomizableEmbed, ExtendedInteraction, ExtendedMessage, CustomizableButton } from './typedef';
/**
* **Documentation Url** of the type: https://simplyd.js.org/docs/fun/tictactoe#tictactoebuttons
*/
export interface TictactoeButtons {
X?: CustomizableButton;
O?: CustomizableButton;
blank?: CustomizableButton;
}
/**
* **Documentation Url** of the type: https://simplyd.js.org/docs/fun/tictactoe#tictactoeembeds
*/
export interface TictactoeEmbeds {
request?: CustomizableEmbed;
win?: CustomizableEmbed;
draw?: CustomizableEmbed;
game?: CustomizableEmbed;
timeout?: CustomizableEmbed;
decline?: CustomizableEmbed;
}
/**
* **Documentation Url** of the options: https://simplyd.js.org/docs/fun/tictactoe#tictactoeoptions
*/
export declare type tictactoeOptions = {
embed?: TictactoeEmbeds;
user?: User;
type?: 'Button' | 'Embed';
max: number;
buttons?: TictactoeButtons;
strict?: boolean;
};
/**
* One line implementation of a super enjoyable **tictactoe game**.
* @param message
* @param options
* @link `Documentation:` https://simplyd.js.org/docs/Fun/tictactoe
* @example simplydjs.tictactoe(interaction)
*/
export declare function tictactoe(message: ExtendedMessage | ExtendedInteraction, options?: tictactoeOptions): Promise<User>;