Update dependencies
OpenAI package will be updated soon, as it needs codebase migration
This commit is contained in:
parent
03a1c62cd5
commit
8ed2e758f8
4 changed files with 211 additions and 339 deletions
|
@ -1,6 +1,6 @@
|
|||
import { AutocompleteInteraction, PermissionsBitField } from "discord.js";
|
||||
import { RESTPostAPIApplicationCommandsJSONBody } from "discord.js";
|
||||
import { ApplicationCommandOption, ApplicationCommandType, ChatInputCommandInteraction, LocalizationMap, MessageInteraction, PermissionResolvable, UserSelectMenuInteraction } from "discord.js";
|
||||
import { APIApplicationCommandOption, ApplicationCommandType, ChatInputCommandInteraction, LocalizationMap, MessageInteraction, PermissionResolvable, UserSelectMenuInteraction } from "discord.js";
|
||||
|
||||
type InteractionTypeMap = {
|
||||
[ApplicationCommandType.ChatInput]: [ChatInputCommandInteraction, string];
|
||||
|
@ -13,7 +13,7 @@ interface Command<Type extends keyof InteractionTypeMap = ApplicationCommandType
|
|||
readonly name_localizations?: LocalizationMap;
|
||||
readonly description: InteractionTypeMap[Type][1];
|
||||
readonly description_localizations?: LocalizationMap;
|
||||
readonly options?: ApplicationCommandOption[];
|
||||
readonly options?: APIApplicationCommandOption[];
|
||||
readonly default_member_permissions?: PermissionResolvable;
|
||||
readonly type: Type;
|
||||
readonly nsfw?: boolean;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ApplicationCommandType, ChatInputCommandInteraction, ApplicationCommandOption, ApplicationCommandOptionType, APIEmbedField } from "discord.js";
|
||||
import { ApplicationCommandType, ChatInputCommandInteraction, APIApplicationCommandOption, ApplicationCommandOptionType, APIEmbedField } from "discord.js";
|
||||
|
||||
import Command from "../command";
|
||||
import { config } from "../index";
|
||||
|
@ -7,7 +7,7 @@ export default class MyLimit extends Command implements Command {
|
|||
name = "check-limit";
|
||||
description = "Checks your limit and usage";
|
||||
type = ApplicationCommandType.ChatInput;
|
||||
options: ApplicationCommandOption[] = [
|
||||
options: APIApplicationCommandOption[] = [
|
||||
{
|
||||
name: "recovery-for",
|
||||
description: "Calculate the limit recovery time for given message count (default: amount required to use the bot again or 1)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue