This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CommandType } from '#lib/enums'; | |
import { Command } from '#lib/structures'; | |
import { | |
ActionRowBuilder, | |
ApplicationCommandOptionType, | |
ButtonBuilder, | |
ButtonInteraction, | |
ButtonStyle, | |
ComponentType, | |
User, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CommandType } from '#lib/enums'; | |
import { Command } from '#lib/structures'; | |
import { | |
ActionRowBuilder, | |
APIButtonComponentWithCustomId, | |
ButtonBuilder, | |
ButtonInteraction, | |
ButtonStyle, | |
ComponentType, | |
} from 'discord.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Timestamp { | |
/** | |
* Discord Timestamps | |
* @param timestamp The timestamp to convert to a readable string | |
* @requires [UNIX](https://en.wikipedia.org/wiki/Unix_time) timestamp in `milliseconds` | |
*/ | |
public constructor(public readonly timestamp: number) { | |
if (this.timestamp < 0) throw new Error('Timestamp must be a positive number'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Message, User } from 'discord.js'; | |
export class Prompt { | |
public constructor(public readonly options: PromptOptions) { | |
if (this.options.questions.length === 0) | |
throw new Error('No valid questions to prompt!'); | |
this.options.time ??= 60_000; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Collection, | |
CommandInteraction, | |
GuildBasedChannel, | |
GuildMember, | |
Role, | |
User, | |
} from 'discord.js'; | |
import type { Snowflake } from 'discord-api-types/v10'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ActionRow, | |
ActionRowBuilder, | |
APISelectMenuComponent, | |
APISelectMenuOption, | |
ButtonBuilder, | |
ButtonStyle, | |
CommandInteraction, | |
EmbedBuilder, | |
Message, |