necord 3.0.2 → 3.0.3
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/services/commands.service.js +0 -1
- package/package.json +1 -1
- package/dist/app.commands.d.ts +0 -5
- package/dist/app.commands.js +0 -44
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -28
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -5
|
@@ -102,7 +102,6 @@ let CommandsService = CommandsService_1 = class CommandsService {
|
|
|
102
102
|
if (this.client.application.partial) {
|
|
103
103
|
yield this.client.application.fetch();
|
|
104
104
|
}
|
|
105
|
-
console.log(this.commands);
|
|
106
105
|
this.logger.log(`Started refreshing application commands.`);
|
|
107
106
|
yield this.client.application.commands.set(this.commands, typeof this.options.registerApplicationCommands === 'string'
|
|
108
107
|
? this.options.registerApplicationCommands
|
package/package.json
CHANGED
package/dist/app.commands.d.ts
DELETED
package/dist/app.commands.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AppCommands = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const _1 = require(".");
|
|
18
|
-
const discord_js_1 = require("discord.js");
|
|
19
|
-
let AppCommands = class AppCommands {
|
|
20
|
-
onPing(interaction) {
|
|
21
|
-
return interaction.reply({ content: 'Pong!' });
|
|
22
|
-
}
|
|
23
|
-
sayHello(interaction) {
|
|
24
|
-
return interaction.reply({ content: 'hello' });
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, _1.SlashCommand)({ name: 'ping', description: 'Ping-pong' }),
|
|
29
|
-
__param(0, (0, _1.Context)()),
|
|
30
|
-
__metadata("design:type", Function),
|
|
31
|
-
__metadata("design:paramtypes", [discord_js_1.CommandInteraction]),
|
|
32
|
-
__metadata("design:returntype", void 0)
|
|
33
|
-
], AppCommands.prototype, "onPing", null);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, _1.SlashCommand)({ name: 'greeting', description: 'Say hello' }),
|
|
36
|
-
__param(0, (0, _1.Context)()),
|
|
37
|
-
__metadata("design:type", Function),
|
|
38
|
-
__metadata("design:paramtypes", [discord_js_1.CommandInteraction]),
|
|
39
|
-
__metadata("design:returntype", void 0)
|
|
40
|
-
], AppCommands.prototype, "sayHello", null);
|
|
41
|
-
AppCommands = __decorate([
|
|
42
|
-
(0, common_1.Injectable)()
|
|
43
|
-
], AppCommands);
|
|
44
|
-
exports.AppCommands = AppCommands;
|
package/dist/app.module.d.ts
DELETED
package/dist/app.module.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AppModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const app_commands_1 = require("./app.commands");
|
|
12
|
-
const _1 = require(".");
|
|
13
|
-
const discord_js_1 = require("discord.js");
|
|
14
|
-
let AppModule = class AppModule {
|
|
15
|
-
};
|
|
16
|
-
AppModule = __decorate([
|
|
17
|
-
(0, common_1.Module)({
|
|
18
|
-
imports: [
|
|
19
|
-
_1.NecordModule.forRoot({
|
|
20
|
-
token: 'OTExMjg5NTI0MjQyNDkzNDkw.YZfOgQ.nfkQAgSBS6ntgNghLr_oT2RVPLI',
|
|
21
|
-
intents: [discord_js_1.Intents.FLAGS.GUILDS],
|
|
22
|
-
registerApplicationCommands: '917922073064640552'
|
|
23
|
-
})
|
|
24
|
-
],
|
|
25
|
-
providers: [app_commands_1.AppCommands]
|
|
26
|
-
})
|
|
27
|
-
], AppModule);
|
|
28
|
-
exports.AppModule = AppModule;
|
package/dist/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|