Skip to content

Commit

Permalink
update djs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeldaFan0225 committed Mar 13, 2023
1 parent 34072e2 commit d13b099
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 90 deletions.
189 changes: 106 additions & 83 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@thunder04/supermap": "^3.0.2",
"centra": "^2.5.0",
"discord.js": "^14.6.0",
"discord.js": "^14.8.0",
"pg": "^8.9.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/classes/command.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ApplicationCommandData } from "discord.js"
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
import {CommandInitOptions} from "../types";
import { AutocompleteContext } from "./autocompleteContext";
import {CommandContext} from "./commandContext";

export class Command {
name: string
commandData?: ApplicationCommandData
commandData?: RESTPostAPIChatInputApplicationCommandsJSONBody | RESTPostAPIContextMenuApplicationCommandsJSONBody
staff_only: boolean
constructor(options: CommandInitOptions) {
this.name = options.name
Expand Down
4 changes: 2 additions & 2 deletions src/classes/context.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ApplicationCommandData, ApplicationCommandType } from "discord.js"
import { ApplicationCommandType, RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
import { CommandInitOptions } from "../types"
import { ContextContext } from "./contextContext"

export class Context {
name: string
commandData?: ApplicationCommandData
commandData?: RESTPostAPIChatInputApplicationCommandsJSONBody | RESTPostAPIContextMenuApplicationCommandsJSONBody
staff_only: boolean
constructor(options: CommandInitOptions) {
this.name = options.name
Expand Down
6 changes: 4 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import {
AnySelectMenuInteraction,
ApplicationCommandData, AutocompleteInteraction,
AutocompleteInteraction,
ButtonInteraction,
ChatInputCommandInteraction,
Interaction,
MessageContextMenuCommandInteraction,
ModalSubmitInteraction,
RESTPostAPIChatInputApplicationCommandsJSONBody,
RESTPostAPIContextMenuApplicationCommandsJSONBody,
UserContextMenuCommandInteraction
} from "discord.js";
import { Pool } from "pg";
Expand All @@ -26,7 +28,7 @@ export interface StoreInitOptions {

export interface CommandInitOptions {
name: string,
command_data?: ApplicationCommandData,
command_data?: RESTPostAPIChatInputApplicationCommandsJSONBody | RESTPostAPIContextMenuApplicationCommandsJSONBody,
staff_only: boolean,
}

Expand Down

0 comments on commit d13b099

Please sign in to comment.