generator-discord 1.1.7 → 1.2.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "generator-discord",
3
3
  "displayName": "Generator-Discord",
4
- "version": "1.1.7",
4
+ "version": "1.2.0",
5
5
  "main": "./app/index.js",
6
6
  "description": "Yeoman generator for Discord.js",
7
7
  "keywords": [
@@ -14,7 +14,6 @@
14
14
  "build": "tsc",
15
15
  "watch": "tsc -w",
16
16
  "test": "vitest run",
17
- "publish": "npm run build && npm publish",
18
17
  "debug": "npx --node-arg=--inspect yo discord"
19
18
  },
20
19
  "files": [
@@ -8,6 +8,6 @@
8
8
  "start": "node ./src/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "discord.js": "^13.13.1"
11
+ "discord.js": "^14.12.1",
12
12
  }
13
13
  }
@@ -1,8 +1,8 @@
1
- const { Client, Intents } = require('discord.js');
1
+ 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: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
5
+ const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
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
@@ -10,7 +10,7 @@
10
10
  "build": "tsc"
11
11
  },
12
12
  "dependencies": {
13
- "discord.js": "^13.13.1",
14
- "typescript": "^4.9.5"
13
+ "discord.js": "^14.12.1",
14
+ "typescript": "^5.1.6"
15
15
  }
16
16
  }
@@ -1,8 +1,8 @@
1
- import { Client, Intents } from 'discord.js';
1
+ 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: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
5
+ const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
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