cleanup
This commit is contained in:
parent
28b77131cf
commit
41d12b07a9
4 changed files with 4 additions and 12 deletions
|
@ -16,7 +16,7 @@ export class UserCommand extends Command {
|
||||||
// Register Chat Input and Context Menu command
|
// Register Chat Input and Context Menu command
|
||||||
public override registerApplicationCommands(registry: Command.Registry) {
|
public override registerApplicationCommands(registry: Command.Registry) {
|
||||||
registry.registerChatInputCommand((builder) =>
|
registry.registerChatInputCommand((builder) =>
|
||||||
builder //
|
builder
|
||||||
.setName(this.name)
|
.setName(this.name)
|
||||||
.setDescription(this.description)
|
.setDescription(this.description)
|
||||||
.addStringOption((option) =>
|
.addStringOption((option) =>
|
||||||
|
|
|
@ -8,11 +8,7 @@ import { Message } from 'discord.js';
|
||||||
export class UserCommand extends Command {
|
export class UserCommand extends Command {
|
||||||
// Register Chat Input and Context Menu command
|
// Register Chat Input and Context Menu command
|
||||||
public override registerApplicationCommands(registry: Command.Registry) {
|
public override registerApplicationCommands(registry: Command.Registry) {
|
||||||
registry.registerChatInputCommand((builder) =>
|
registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description));
|
||||||
builder //
|
|
||||||
.setName(this.name)
|
|
||||||
.setDescription(this.description)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Message command
|
// Message command
|
||||||
|
|
|
@ -16,7 +16,7 @@ export class UserCommand extends Command {
|
||||||
// Register Chat Input and Context Menu command
|
// Register Chat Input and Context Menu command
|
||||||
public override registerApplicationCommands(registry: Command.Registry) {
|
public override registerApplicationCommands(registry: Command.Registry) {
|
||||||
registry.registerChatInputCommand((builder) =>
|
registry.registerChatInputCommand((builder) =>
|
||||||
builder //
|
builder
|
||||||
.setName(this.name)
|
.setName(this.name)
|
||||||
.setDescription(this.description)
|
.setDescription(this.description)
|
||||||
.addStringOption((option) => option.setName('prompt').setDescription('Make a picture!').setRequired(true))
|
.addStringOption((option) => option.setName('prompt').setDescription('Make a picture!').setRequired(true))
|
||||||
|
|
|
@ -8,11 +8,7 @@ import { Message } from 'discord.js';
|
||||||
export class UserCommand extends Command {
|
export class UserCommand extends Command {
|
||||||
// Register Chat Input and Context Menu command
|
// Register Chat Input and Context Menu command
|
||||||
public override registerApplicationCommands(registry: Command.Registry) {
|
public override registerApplicationCommands(registry: Command.Registry) {
|
||||||
registry.registerChatInputCommand((builder) =>
|
registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description));
|
||||||
builder //
|
|
||||||
.setName(this.name)
|
|
||||||
.setDescription(this.description)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Message command
|
// Message command
|
||||||
|
|
Loading…
Add table
Reference in a new issue