mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-24 04:20:09 +00:00
Compare commits
2 Commits
@discordjs
...
create-dis
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0ec70dfda | ||
|
|
8a6045f600 |
@@ -2,6 +2,16 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
# [create-discord-bot@0.2.3](https://github.com/discordjs/discord.js/compare/create-discord-bot/0.2.2...create-discord-bot/0.2.3) - (2023-11-12)
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
- Import picocolors as default (#9949) ([8a6045f](https://github.com/discordjs/discord.js/commit/8a6045f6003971dbf64c8576f08631751b982ae4))
|
||||
|
||||
## Features
|
||||
|
||||
- Bump package versions ([e8bd354](https://github.com/discordjs/discord.js/commit/e8bd35405239616b12cb5f09eb983f5251298aca))
|
||||
|
||||
# [create-discord-bot@0.2.2](https://github.com/discordjs/discord.js/compare/create-discord-bot@0.2.1...create-discord-bot@0.2.2) - (2023-11-12)
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// eslint-disable-next-line n/shebang
|
||||
import process from 'node:process';
|
||||
import { Option, program } from 'commander';
|
||||
import { red, yellow, green } from 'picocolors';
|
||||
import picocolors from 'picocolors';
|
||||
import prompts from 'prompts';
|
||||
import validateProjectName from 'validate-npm-package-name';
|
||||
import packageJSON from '../package.json' assert { type: 'json' };
|
||||
@@ -34,7 +34,7 @@ program
|
||||
.version(packageJSON.version)
|
||||
.description('Create a basic discord.js bot.')
|
||||
.argument('[directory]', 'What is the name of the directory you want to create this project in?')
|
||||
.usage(`${green('<directory>')}`)
|
||||
.usage(`${picocolors.green('<directory>')}`)
|
||||
.action((directory) => {
|
||||
projectDirectory = directory;
|
||||
})
|
||||
@@ -68,13 +68,13 @@ if (!projectDirectory) {
|
||||
const errors = [];
|
||||
|
||||
for (const error of [...(validationResult.errors ?? []), ...(validationResult.warnings ?? [])]) {
|
||||
errors.push(red(`- ${error}`));
|
||||
errors.push(picocolors.red(`- ${error}`));
|
||||
}
|
||||
|
||||
return red(
|
||||
`Cannot create a project named ${yellow(
|
||||
return picocolors.red(
|
||||
`Cannot create a project named ${picocolors.yellow(
|
||||
`"${directory}"`,
|
||||
)} due to npm naming restrictions.\n\nErrors:\n${errors.join('\n')}\n\n${red(
|
||||
)} due to npm naming restrictions.\n\nErrors:\n${errors.join('\n')}\n\n${picocolors.red(
|
||||
'\nSee https://docs.npmjs.com/cli/configuring-npm/package-json for more details.',
|
||||
)}}`,
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "create-discord-bot",
|
||||
"version": "0.2.2",
|
||||
"version": "0.2.3",
|
||||
"description": "A simple way to create a startup Discord bot.",
|
||||
"scripts": {
|
||||
"build": "tsc --noEmit && tsup",
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/core": "^1.0.1",
|
||||
"discord.js": "^14.13.0"
|
||||
"@discordjs/core": "^1.1.0",
|
||||
"discord.js": "^14.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sapphire/ts-config": "^4.0.1",
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"start": "bun run src/index.[REPLACE_IMPORT_EXT]"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/core": "^1.0.1",
|
||||
"discord.js": "^14.13.0"
|
||||
"@discordjs/core": "^1.1.0",
|
||||
"discord.js": "^14.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sapphire/ts-config": "^5.0.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { RESTPostAPIApplicationCommandsJSONBody, CommandInteraction } from 'npm:discord.js@^14.13.0';
|
||||
import type { RESTPostAPIApplicationCommandsJSONBody, CommandInteraction } from 'npm:discord.js@^14.14.0';
|
||||
import type { StructurePredicate } from '../util/loaders.ts';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ClientEvents } from 'npm:discord.js@^14.13.0';
|
||||
import type { ClientEvents } from 'npm:discord.js@^14.14.0';
|
||||
import type { StructurePredicate } from '../util/loaders.ts';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Events } from 'npm:discord.js@^14.13.0';
|
||||
import { Events } from 'npm:discord.js@^14.14.0';
|
||||
import type { Event } from './index.ts';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'https://deno.land/std@0.199.0/dotenv/load.ts';
|
||||
import { URL } from 'node:url';
|
||||
import { Client, GatewayIntentBits } from 'npm:discord.js@^14.13.0';
|
||||
import { Client, GatewayIntentBits } from 'npm:discord.js@^14.14.0';
|
||||
import { loadCommands, loadEvents } from './util/loaders.ts';
|
||||
import { registerEvents } from './util/registerEvents.ts';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'https://deno.land/std@0.199.0/dotenv/load.ts';
|
||||
import { URL } from 'node:url';
|
||||
import { API } from 'npm:@discordjs/core@^1.0.1/http-only';
|
||||
import { REST } from 'npm:discord.js@^14.13.0';
|
||||
import { API } from 'npm:@discordjs/core@^1.1.0/http-only';
|
||||
import { REST } from 'npm:discord.js@^14.14.0';
|
||||
import { loadCommands } from './loaders.ts';
|
||||
|
||||
const commands = await loadCommands(new URL('../commands/', import.meta.url));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Events, type Client } from 'npm:discord.js@^14.13.0';
|
||||
import { Events, type Client } from 'npm:discord.js@^14.14.0';
|
||||
import type { Command } from '../commands/index.ts';
|
||||
import type { Event } from '../events/index.ts';
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"deploy": "node --require dotenv/config src/util/deploy.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/core": "^1.0.1",
|
||||
"discord.js": "^14.13.0",
|
||||
"@discordjs/core": "^1.1.0",
|
||||
"discord.js": "^14.14.0",
|
||||
"dotenv": "^16.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
"start": "node --require dotenv/config dist/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@discordjs/core": "^1.0.1",
|
||||
"discord.js": "^14.13.0",
|
||||
"@discordjs/core": "^1.1.0",
|
||||
"discord.js": "^14.14.0",
|
||||
"dotenv": "^16.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user