Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix(CommandStore): adjust type with builders
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored May 5, 2024
1 parent 5832580 commit d03a60d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/framework/src/Stores/CommandStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AliasStore } from "@sapphire/pieces";
import type { RESTPostAPIApplicationCommandsJSONBody } from "discord-api-types/v10";
import { Routes } from "discord-api-types/v10";
import type { APIApplicationCommandOption } from "discord-api-types/v10";
import { Routes } from "discord-api-types/v10.js";
import { Events } from "../Utilities/EventEnums.js";
import { Command } from "./Command.js";

Expand All @@ -11,7 +11,7 @@ export class CommandStore extends AliasStore<Command> {

public async postCommands(): Promise<void> {
const commands = [...this.values()];
const registerAbleCommands: RESTPostAPIApplicationCommandsJSONBody[] = [];
const registerAbleCommands: APIApplicationCommandOption[] = [];

for (const command of commands) {
if (command.options.chatInput) {
Expand Down

0 comments on commit d03a60d

Please sign in to comment.