Skip to content

Commit 9c10067

Browse files
committed
fix types
1 parent 4706c57 commit 9c10067

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dependencies": {
33
"chalk": "^4.1.1",
44
"chillout": "^5.0.0",
5-
"discord.js": "13.1.0",
5+
"discord.js": "^13.1.0",
66
"enquirer": "^2.3.6",
77
"plsargs": "^0.1.6",
88
"recursive-readdir": "^2.2.2",

types/Interaction.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { ApplicationInteractionOption, ApplicationInteractionType, Client, CommandInteraction, ContextMenuInteraction, PermissionString } from "discord.js";
1+
import {
2+
ApplicationCommandOptionData,
3+
ApplicationCommandType,
4+
Client,
5+
CommandInteraction,
6+
ContextMenuInteraction,
7+
PermissionString
8+
} from "discord.js";
29

310
export class BaseInteraction {
411
private _type: string;
@@ -16,9 +23,9 @@ export class BaseInteraction {
1623
other?: { [key: string | number]: any };
1724
coolDown?: number;
1825
guildOnly?: boolean;
19-
options?: ApplicationInteractionOption[];
26+
options?: ApplicationCommandOptionData[];
2027
defaultPermission?: boolean;
21-
actionType?: ApplicationInteractionType;
28+
actionType?: ApplicationCommandType;
2229
constructor(arg: TInteractionConstructor)
2330
}
2431

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ discord-api-types@^0.22.0:
158158
resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.22.0.tgz#34dc57fe8e016e5eaac5e393646cd42a7e1ccc2a"
159159
integrity sha512-l8yD/2zRbZItUQpy7ZxBJwaLX/Bs2TGaCthRppk8Sw24LOIWg12t9JEreezPoYD0SQcC2htNNo27kYEpYW/Srg==
160160

161-
161+
discord.js@^13.1.0:
162162
version "13.1.0"
163163
resolved "https://registry.yarnpkg.com/discord.js/-/discord.js-13.1.0.tgz#99f6a2a8be88d31906ff0148e9b1cb603ebb2e2e"
164164
integrity sha512-gxO4CXKdHpqA+WKG+f5RNnd3srTDj5uFJHgOathksDE90YNq/Qijkd2WlMgTTMS6AJoEnHxI7G9eDQHCuZ+xDA==

0 commit comments

Comments
 (0)