reciple 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,15 @@
1
1
  <h1 align="center">
2
2
  <img src="https://i.imgur.com/DWM0tJL.png" width="50%">
3
3
  <br>
4
- <img alt="Lines of code" src="https://img.shields.io/tokei/lines/github/FalloutStudios/Reciple">
5
- <img alt="GitHub" src="https://img.shields.io/github/license/FalloutStudios/Reciple">
6
- <a href="https://www.codefactor.io/repository/github/falloutstudios/reciple/overview/main"><img src="https://www.codefactor.io/repository/github/falloutstudios/reciple/badge/main" alt="CodeFactor"></a>
4
+ <a href="https://npmjs.org/package/reciple">
5
+ <img src="https://img.shields.io/npm/v/reciple?label=latest%20npm%20release%20">
6
+ </a>
7
+ <a href="https://github.com/FalloutStudios/Reciple/blob/main/LICENSE">
8
+ <img src="https://img.shields.io/github/license/FalloutStudios/Reciple">
9
+ </a>
10
+ <a href="https://www.codefactor.io/repository/github/falloutstudios/reciple/overview/main">
11
+ <img src="https://www.codefactor.io/repository/github/falloutstudios/reciple/badge/main">
12
+ </a>
7
13
  </h1>
8
14
 
9
15
  A simple Dicord.js command handler that just works.
@@ -236,7 +236,7 @@ class RecipleClient extends discord_js_1.Client {
236
236
  interactionCommandExecute(interaction) {
237
237
  var _a, _b;
238
238
  return __awaiter(this, void 0, void 0, function* () {
239
- if (!interaction || interaction.type !== discord_js_1.InteractionType.ApplicationCommand || !this.isReady())
239
+ if (!interaction || interaction.type !== discord_js_1.InteractionType.ApplicationCommand || !interaction.isChatInputCommand() || !this.isReady())
240
240
  return;
241
241
  const command = this.findCommand(interaction.commandName, builders_1.RecipleCommandBuilderType.InteractionCommand);
242
242
  if (!command)
@@ -1,10 +1,10 @@
1
- import { Awaitable, CommandInteraction, PermissionResolvable } from 'discord.js';
1
+ import { Awaitable, ChatInputCommandInteraction, PermissionResolvable } from 'discord.js';
2
2
  import { RecipleHaltedCommandData } from '../../types/commands';
3
3
  import { SlashCommandBuilder } from '@discordjs/builders';
4
4
  import { RecipleClient } from '../RecipleClient';
5
5
  import { RecipleCommandBuilderType } from '../../types/builders';
6
6
  export interface RecipleInteractionCommandExecuteData {
7
- interaction: CommandInteraction;
7
+ interaction: ChatInputCommandInteraction;
8
8
  builder: InteractionCommandBuilder;
9
9
  client: RecipleClient<true>;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Handler for Discord.js",
5
5
  "author": "FalloutStudios",
6
6
  "homepage": "https://reciple.js.org",