reorganize

This commit is contained in:
Ryan Cao 2022-08-29 12:02:16 +08:00
parent 0aaee0e0f1
commit d16bec1336
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
6 changed files with 67 additions and 48 deletions

View file

@ -15,14 +15,16 @@ export interface ModrinthProject {
}
import {
type CacheType,
type CommandInteraction,
EmbedBuilder,
type CacheType,
type ChatInputCommandInteraction,
} from 'discord.js';
import { COLORS } from '../constants';
export const modrinthCommand = async (i: CommandInteraction<CacheType>) => {
export const modrinthCommand = async (
i: ChatInputCommandInteraction<CacheType>
) => {
await i.deferReply();
const { value: id } = i.options.get('id') ?? { value: null };