diff --git a/CHANGELOG.md b/CHANGELOG.md index 58ac398..e03fe7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,10 @@ Hello! This is the Change log section of Discord-Modals. Here you can see what things have been changed in the different versions, to be informed. This will be updated every time there are new versions. I hope you enjoy this package :) -# v1.3.0 (Stable) +# v1.3.1 (Stable) +- Fix: change `discord-api-types` enums from `v9` to `v10`. + +# v1.3.0 - Fix bug: 'INVALID_CLIENT' error when the Client is valid on `.showModal()` method. - **Featured:** Add `ModalActionRow` class. diff --git a/package.json b/package.json index 7c52f3d..3745c97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-modals", - "version": "1.3.0", + "version": "1.3.1", "description": "Discord-Modals is a package that allows your discord.js v13 and v14 bot to create, and interact with Modals, a new Discord feature.", "main": "index.js", "files": [ diff --git a/src/structures/Interaction.js b/src/structures/Interaction.js index 819c659..9ae7d8b 100644 --- a/src/structures/Interaction.js +++ b/src/structures/Interaction.js @@ -2,7 +2,7 @@ const { Base, Permissions } = require('discord.js'); const SnowflakeUtil = require('../util/SnowflakeUtil'); -const { InteractionType } = require('discord-api-types/v9'); +const { InteractionType } = require('discord-api-types/v10'); /** * Represents an Interaction. diff --git a/src/v14/Interaction.js b/src/v14/Interaction.js index 37fb62e..87a9ea4 100644 --- a/src/v14/Interaction.js +++ b/src/v14/Interaction.js @@ -2,7 +2,7 @@ const { Base, PermissionsBitField } = require('discord.js'); const SnowflakeUtil = require('../util/SnowflakeUtil'); -const { InteractionType } = require('discord-api-types/v9'); +const { InteractionType } = require('discord-api-types/v10'); /** * Represents an Interaction. diff --git a/src/v14/ShowModal.js b/src/v14/ShowModal.js index e24763a..0c55385 100644 --- a/src/v14/ShowModal.js +++ b/src/v14/ShowModal.js @@ -2,7 +2,7 @@ const { Client, Interaction } = require('discord.js'); const { InteractionResponseTypes } = require('../util/Constants'); const Modal = require('../structures/Modal'); const { Error } = require('../structures/errors'); -const { Routes } = require('discord-api-types/v9'); +const { Routes } = require('discord-api-types/v10'); /** * Shows the Modal to the Interaction User. diff --git a/src/v14/interfaces/InteractionResponses.js b/src/v14/interfaces/InteractionResponses.js index bb54f8a..3efd52e 100644 --- a/src/v14/interfaces/InteractionResponses.js +++ b/src/v14/interfaces/InteractionResponses.js @@ -1,5 +1,5 @@ const { MessagePayload } = require('discord.js'); -const { InteractionResponseType, MessageFlags, Routes } = require('discord-api-types/v9'); +const { InteractionResponseType, MessageFlags, Routes } = require('discord-api-types/v10'); const { Error } = require('../../structures/errors'); const Modal = require('../../structures/Modal');