Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Discord-Modals v1.3.1: Fix: change discord-api-types enums from �9 to…
Browse files Browse the repository at this point in the history
… �10.
  • Loading branch information
Mateo-tem committed Mar 19, 2022
1 parent a498e82 commit d47f4ca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/v14/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/v14/ShowModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/v14/interfaces/InteractionResponses.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit d47f4ca

Please sign in to comment.