Functions
DiscordActivity
Parameters
Returns Promise<string>
HHMMSS
- HHMMSS(str: string): string
Parameters
Returns string
bool
Returns boolean
cleanText
- cleanText(text: string): string
Parameters
Returns string
confirmation
- confirmation(message: Message<boolean>, author: any, validReactions?: any[], time?: number): Promise<string>
Parameters
message: Message<boolean>
author: any
validReactions: any[] = []
time: number = 60000
Returns Promise<string>
daysAgo
- daysAgo(date: Date): string
Parameters
Returns string
doublestruck
- doublestruck(word: string): Promise<string>
Parameters
Returns Promise<string>
emojify
- emojify(str: string): string
Parameters
Returns string
formatUpper
- formatUpper(str: string): string
Parameters
Returns string
fractur
- fractur(word: string): Promise<string>
Parameters
Returns Promise<string>
generatePassword
Parameters
Returns string
getLilaseDownloads
- getLilaseDownloads(): Promise<number>
Returns Promise<number>
getreddit
Parameters
obama
Returns void
parseMS
- parseMS(val: number, options?: msOptions): string
Parameters
val: number
Optional options: msOptions
Returns string
parseString
- parseString(val: string): number
Parameters
Returns number
randint
- randint(max: number, min: number): number
Parameters
Returns number
random8ball
- random8ball(): Promise<string>
Returns Promise<string>
randomID
- randomID(length: number): string
Parameters
Returns string
round
- round(value: number, decimals: number): number
Parameters
value: number
decimals: number
Returns number
selectRandom
- selectRandom(array?: any[]): any
Parameters
Returns any
sleep
Parameters
Returns void
superscript
- superscript(word: string): Promise<string>
Parameters
Returns Promise<string>
timer
- timer(timestamp: number): string
Parameters
Returns string
trimArray
- trimArray(arr?: any[]): string
Parameters
Returns string
Start a Discord Activity session
const Cath = require("cath") const client = new Client() const d = await Cath.DiscordActivity({ application: "youtube", channel_id: "901542111005012099", token: client.token, }); message.channel.send({ content: d });