generator-discord 1.3.15 → 1.3.17

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/app/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import Generator from 'yeoman-generator';
3
2
  type BotType = 'typescript' | 'javascript' | 'python' | 'rust';
4
3
  interface Answers {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAazC,KAAK,OAAO,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/D,UAAU,OAAO;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACtB;AA6BD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS;IACtD,OAAO,CAAC,OAAO,CAA0B;gBAE7B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI/D,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDhC,IAAI,IAAI,IAAI;IAYZ,OAAO,IAAI,IAAI;IAsBT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCxB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB1B,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM;CAWjE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAazC,KAAK,OAAO,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE/D,UAAU,OAAO;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACtB;AA6BD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS;IACtD,OAAO,CAAC,OAAO,CAA0B;gBAE7B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI/D,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgDhC,IAAI,IAAI,IAAI;IAYZ,OAAO,IAAI,IAAI;IAsBT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCxB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB1B,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM;CAWjE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "generator-discord",
3
3
  "displayName": "Generator-Discord",
4
- "version": "1.3.15",
4
+ "version": "1.3.17",
5
5
  "type": "module",
6
6
  "exports": "./app/index.js",
7
7
  "description": "Create a basic Discord-Bot, supporting many programming languages.",
@@ -17,7 +17,7 @@
17
17
  "scripts": {
18
18
  "build": "tsc",
19
19
  "watch": "tsc -w",
20
- "test": "vitest run",
20
+ "test": "npm run build && vitest run",
21
21
  "lint": "eslint src test --ext .ts",
22
22
  "lint:fix": "eslint src test --ext .ts --fix",
23
23
  "clean": "npx rimraf app && npx rimraf node_modules"
@@ -39,17 +39,18 @@
39
39
  },
40
40
  "homepage": "https://github.com/emilkrebs/Generator-Discord",
41
41
  "dependencies": {
42
- "yeoman-generator": "^7.1.1"
42
+ "yeoman-generator": "^7.5.1"
43
43
  },
44
44
  "devDependencies": {
45
- "dotenv": "^16.4.5",
46
- "eslint": "^8.57.0",
47
- "typescript": "^5.4.5",
48
- "typescript-eslint": "^7.8.0",
49
- "vitest": "^1.5.2",
50
- "yeoman-test": "^8.2.0"
45
+ "dotenv": "^16.5.0",
46
+ "eslint": "^9.25.1",
47
+ "typescript": "^5.8.3",
48
+ "typescript-eslint": "^8.31.1",
49
+ "vitest": "^3.1.2",
50
+ "yeoman-environment": "^4.4.3",
51
+ "yeoman-test": "^10.1.0"
51
52
  },
52
53
  "optionalDependencies": {
53
- "@rollup/rollup-linux-x64-gnu": "^4.17.2"
54
+ "@rollup/rollup-linux-x64-gnu": "^4.40.1"
54
55
  }
55
56
  }
@@ -8,6 +8,6 @@
8
8
  "start": "node ./src/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "discord.js": "^14.15.2"
11
+ "discord.js": "^14.19.2"
12
12
  }
13
13
  }
@@ -2,7 +2,7 @@ const { Client, GatewayIntentBits } = require('discord.js');
2
2
  const { token } = require('../config.json');
3
3
 
4
4
  // Create a new client instance with Intents that specify which privileged intents your bot requires
5
- const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
5
+ const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
6
6
  const prefix = '!';
7
7
 
8
8
  // Run this code when the client is ready. This event will only trigger one time after logging in
@@ -1 +1 @@
1
- discord.py ~= 2.3.2
1
+ discord.py ~= 2.4.0
@@ -6,5 +6,5 @@ edition = "2021"
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
7
 
8
8
  [dependencies]
9
- serenity = { version = "0.12.1", default-features = false, features = ["client", "gateway", "rustls_backend", "model"] }
10
- tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
9
+ serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model"] }
10
+ tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
@@ -10,7 +10,7 @@
10
10
  "build": "tsc"
11
11
  },
12
12
  "dependencies": {
13
- "discord.js": "^14.15.2",
14
- "typescript": "^5.4.5"
13
+ "discord.js": "^14.19.2",
14
+ "typescript": "^5.8.3"
15
15
  }
16
16
  }
@@ -2,7 +2,7 @@ import { Client, GatewayIntentBits } from 'discord.js';
2
2
  import { token } from '../config.json';
3
3
 
4
4
  // Create a new client instance with Intents that specify which privileged intents your bot requires
5
- const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
5
+ const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
6
6
  const prefix = '!';
7
7
 
8
8
  // Run this code when the client is ready. This event will only trigger one time after logging in