"esModuleInterop": true, "forceConsistentCasingInFileNames": true, // Language and Environment "emitDecoratorMetadata": true, "experimentalDecorators": true, "lib": ["ESNext"], "target": "ES2020", "useDefineForClassFields": true, // Completeness "skipLibCheck": true }, "exclude": ["...
/* app.module.ts */ import { DiscordModule } from '@discord-nestjs/core'; import { Module } from '@nestjs/common'; import { GatewayIntentBits } from 'discord.js'; @Module({ imports: [ DiscordModule.forRootAsync({ useFactory: () => ({ token: 'your-bot-token', discordClientOptions...
const ytsearch = require('yt-search'); const Discord = require('discord.js') const { joinVoiceChannel, createAudioPlayer, createAudioResource, NoSubscriberBehavior } = require('@discordjs/voice'); module.exports = { name: "play", description: "test command", async run(client, message, ar...
16 silly resolveWithNewModule discord-rich-presence@0.0.8 checking installable status 17 silly fetchPackageMetaData error for discord-rpc@github:discordjs/rpc Error while executing: 17 silly fetchPackageMetaData undefined ls-remote -h -t ssh://git@github.com/discordjs/rpc.git 17 silly fetch...
"resolveJsonModule": true tsconfig.json { "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es2016", "lib": [ "es6", "dom" ], "sourceMap": true, "types": [ "node", "reflect-metadata" ], "typeRoots": [ "node_modules/@types" ], "experimenta...
另外, 让我们创建一个tsconfig.json文件, 如下所示。 InversifyJS需要experimentalDecorators, emitDecoratorMetadata, es6和reflect-metadata: { "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es2016", "lib": [ ...
File metadata and controls Code Blame 101 lines (101 loc) · 3.27 KB Raw { "$schema": "https://json.schemastore.org/package.json", "name": "@discordjs/discord.js", "version": "0.0.0", "description": "A powerful library for interacting with the Discord API", "private": true, "...
Node Module (FFMPEG): https://npmjs.com/package/ffmpeg-static Avconv: https://libav.org/download Documentation Getting Started First of all, you will need to register slash commands: const { REST } = require("@discordjs/rest"); const { Routes, ApplicationCommandOptionType } = require(...
Although this project re-uses some code of the original project, it has been completely rewritten in other parts using NestJs and features now a module-based approach. ⛔ Limitations Bot does not support shards. This means, you cannot use it in multiple servers concurrently. Album covers are...
Ueditor后端配置项没有正常加载,上传插件不能正常使用!的解决过程。