discord-dynamic-music-bot-addon
Version:
Music bot addon for bot
18 lines • 1.44 kB
TypeScript
import { TextChannel, Message, Guild, MessageEmbed } from 'discord.js';
import { YoutubePlayer } from './YoutubePlayer';
import { PlaylistItem } from './GuildPlayer';
export declare class Embeds {
static infoEmbed(msg: string, title?: string): MessageEmbed;
static errorEmbed(msg: string, title?: string): MessageEmbed;
}
export declare function errorInfo(channel: TextChannel, content: string, title: string, deleteTimeout?: number): Promise<Message>;
export declare function info(channel: TextChannel, content: string, title: string, deleteTimeout?: number): Promise<Message>;
export declare function sendEmbed(channel: TextChannel, content: string, type: 'info' | 'error', title: string, deleteTimeout?: number): Promise<Message>;
export declare function stringifyRichEmbed(richEmbed: MessageEmbed, guild: Guild): Promise<string>;
export declare function addBasicInfo(playerObject: YoutubePlayer, embed: MessageEmbed, playlistItem: PlaylistItem, guild: Guild): Promise<MessageEmbed>;
export declare function canEmbed(channel?: TextChannel | undefined): boolean;
export declare function canManageMessage(channel?: TextChannel | undefined): boolean;
export declare function canAddReaction(channel?: TextChannel | undefined): boolean;
export declare function sliderGenerator(pos: number, maxPos: number): string;
export declare function arrayReplace(text: string, character: string): string;
//# sourceMappingURL=messages.d.ts.map