@somehiddenkey/discord-command-utils 1.2.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@somehiddenkey/discord-command-utils",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A utility library for building Discord bot commands using discord.js",
5
5
  "author": {
6
6
  "email": "k3y.throwaway@gmail.com",
@@ -5,7 +5,7 @@ import LocalConfig from "../Configs/LocalConfig.js";
5
5
  import consola from "consola";
6
6
  import CommandError from "./CommandError.js";
7
7
  import RestCommands from './RestCommands.js';
8
- import pkg from 'discord.js';
8
+ import pkg, { ChannelType } from 'discord.js';
9
9
  const {
10
10
  Interaction: DiscordBaseInteraction,
11
11
  OmitPartialGroupDMChannel,
@@ -88,7 +88,7 @@ export default class InteractionContainer {
88
88
  .#call(InteractionType.Message, scope, [customId], interaction)
89
89
  .catch(error => {
90
90
  if (error instanceof CommandError)
91
- return error.error_as_message()
91
+ return error.error_as_message(interaction)
92
92
  else
93
93
  return interaction
94
94
  .reply("something went wrong")
@@ -1,6 +1,6 @@
1
1
  import GlobalConfig from "../Configs/GlobalConfig.js";
2
2
  import LocalConfig from "../Configs/LocalConfig.js";
3
- import { REST } from "discord.js";
3
+ import { REST, Routes } from "discord.js";
4
4
 
5
5
  export default class RestCommands {
6
6
  #commands = new Map();
@@ -1,4 +1,4 @@
1
- import { BaseInteraction } from "discord.js";
1
+ import { BaseInteraction, PermissionsBitField } from "discord.js";
2
2
  import { Modlevel } from "./enums.js";
3
3
 
4
4