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.
package/dist/types/commands.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface Command {
|
|
|
4
4
|
command: SlashCommandBuilder
|
|
5
5
|
run: (interaction: ChatInputCommandInteraction) => void | Promise<void>
|
|
6
6
|
}
|
|
7
|
-
|
|
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("
|
|
7
|
-
emojis: import("
|
|
8
|
-
members: import("
|
|
9
|
-
roles: import("
|
|
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
|
-
|
|
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 }
|
package/dist/types/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIPartialChannel, BaseChannel, CategoryChannel, ChannelType, NonThreadGuildBasedChannel, TextChannel } from "discord.js"
|
|
2
|
-
|
|
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
|
+
"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.
|
|
18
|
-
"discord-api-types": "^0.37.
|
|
19
|
-
"discord.js": "^14.
|
|
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.
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
24
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
-
"eslint": "^8.
|
|
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.
|
|
30
|
-
"eslint-plugin-unicorn": "^
|
|
31
|
-
"prettier": "^2.
|
|
32
|
-
"prettier-plugin-organize-imports": "^3.
|
|
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.
|
|
35
|
+
"typescript": "^4.9.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "rm -rf dist && pnpm lint && tsc && pnpm format",
|