UNPKG

ts-discord-wrapper

Version:
16 lines (14 loc) 361 B
export class SlashChoice { private readonly name: string; private readonly value: string | number; constructor(name: string, value: string | number) { this.name = name; this.value = value; } public toJson(): any { return { name: this.name, value: this.value }; } }