discord-bot-shared 0.6.3 → 0.6.4

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.
@@ -4,7 +4,7 @@ interface Command {
4
4
  command: SlashCommandBuilder
5
5
  run: (interaction: ChatInputCommandInteraction) => void | Promise<void>
6
6
  }
7
- declare type CommandsCollection = Collection<string, Command>
7
+ type CommandsCollection = Collection<string, Command>
8
8
  declare function registerCommands(botToken: string, clientId: string, projectMetaURL: string, guildId?: string): Promise<CommandsCollection>
9
9
  export default registerCommands
10
10
  export { Command, CommandsCollection }
@@ -3,10 +3,10 @@ declare function setBot(botClient: Client): void
3
3
  declare function getGuildCache(): Promise<
4
4
  | {
5
5
  guild: import("discord.js").Guild
6
- channels: import("discord.js").Collection<string, import("discord.js").NonThreadGuildBasedChannel | null>
7
- emojis: import("discord.js").Collection<string, import("discord.js").GuildEmoji>
8
- members: import("discord.js").Collection<string, import("discord.js").GuildMember>
9
- roles: import("discord.js").Collection<string, import("discord.js").Role>
6
+ channels: import("@discordjs/collection").Collection<string, import("discord.js").NonThreadGuildBasedChannel | null>
7
+ emojis: import("@discordjs/collection").Collection<string, import("discord.js").GuildEmoji>
8
+ members: import("@discordjs/collection").Collection<string, import("discord.js").GuildMember>
9
+ roles: import("@discordjs/collection").Collection<string, import("discord.js").Role>
10
10
  }
11
11
  | undefined
12
12
  >
@@ -1,6 +1,6 @@
1
1
  import { ChatInputCommandInteraction, Client } from "discord.js"
2
2
  import { CommandsCollection } from "./commands.js"
3
- declare type InteractionCheck = (interaction: ChatInputCommandInteraction) => Promise<boolean | void>
3
+ type InteractionCheck = (interaction: ChatInputCommandInteraction) => Promise<boolean | void>
4
4
  declare function registerInteractionCreate(bot: Client, commands: CommandsCollection, interactionCheck?: InteractionCheck): void
5
5
  export default registerInteractionCreate
6
6
  export { InteractionCheck }
@@ -1,5 +1,5 @@
1
1
  import { APIPartialChannel, BaseChannel, CategoryChannel, ChannelType, NonThreadGuildBasedChannel, TextChannel } from "discord.js"
2
- declare type NonThreadGuildBasedChannelType =
2
+ type NonThreadGuildBasedChannelType =
3
3
  | ChannelType.GuildText
4
4
  | ChannelType.GuildVoice
5
5
  | ChannelType.GuildNews
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-bot-shared",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "description": "Modules for creating discord bots.",
6
6
  "repository": "github:adamhl8/discord-bot-shared",
@@ -14,25 +14,25 @@
14
14
  "LICENSE"
15
15
  ],
16
16
  "dependencies": {
17
- "@discordjs/rest": "^1.2.0",
18
- "discord-api-types": "^0.37.12",
19
- "discord.js": "^14.5.0"
17
+ "@discordjs/rest": "^1.4.0",
18
+ "discord-api-types": "^0.37.21",
19
+ "discord.js": "^14.7.1"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/node": "^18.8.3",
23
- "@typescript-eslint/eslint-plugin": "^5.39.0",
24
- "@typescript-eslint/parser": "^5.39.0",
25
- "eslint": "^8.24.0",
22
+ "@types/node": "^18.11.11",
23
+ "@typescript-eslint/eslint-plugin": "^5.45.1",
24
+ "@typescript-eslint/parser": "^5.45.1",
25
+ "eslint": "^8.29.0",
26
26
  "eslint-config-prettier": "^8.5.0",
27
27
  "eslint-formatter-pretty": "^4.1.0",
28
28
  "eslint-plugin-eslint-comments": "^3.2.0",
29
- "eslint-plugin-sonarjs": "^0.15.0",
30
- "eslint-plugin-unicorn": "^44.0.1",
31
- "prettier": "^2.7.1",
32
- "prettier-plugin-organize-imports": "^3.1.1",
29
+ "eslint-plugin-sonarjs": "^0.17.0",
30
+ "eslint-plugin-unicorn": "^45.0.1",
31
+ "prettier": "^2.8.1",
32
+ "prettier-plugin-organize-imports": "^3.2.1",
33
33
  "prettier-plugin-pkg": "^0.17.1",
34
34
  "prettier-plugin-sh": "^0.12.8",
35
- "typescript": "^4.8.4"
35
+ "typescript": "^4.9.3"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "rm -rf dist && pnpm lint && tsc && pnpm format",