bot-utils
Version:
JavaScript program and Discord Bot development tools
23 lines (22 loc) • 787 B
TypeScript
declare function randInt(min: number, max: number): number;
declare function randColor(): string;
declare function cpuUsage(): string;
declare function randAlphaNumeric(len: number): string;
declare function round(number: number, decimalPlace: number): number;
declare function snowflake(snowflake: number): string;
declare function hasNumber(str: string): boolean;
declare function isNumber(n: any): boolean;
declare function uptime(): string;
declare global {
interface Array<T> {
shuffle: Function;
random(a: T): Function;
}
}
declare global {
interface Object {
isArray: Function;
}
}
declare const randColour: () => string;
export { round, randAlphaNumeric, randInt, randColor, randColour, cpuUsage, snowflake, hasNumber, isNumber, uptime };