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
|
||||
public override registerApplicationCommands(registry: Command.Registry) {
|
||||
registry.registerChatInputCommand((builder) =>
|
||||
builder //
|
||||
builder
|
||||
.setName(this.name)
|
||||
.setDescription(this.description)
|
||||
.addStringOption((option) =>
|
||||
|
|
|
@ -8,11 +8,7 @@ import { Message } from 'discord.js';
|
|||
export class UserCommand extends Command {
|
||||
// Register Chat Input and Context Menu command
|
||||
public override registerApplicationCommands(registry: Command.Registry) {
|
||||
registry.registerChatInputCommand((builder) =>
|
||||
builder //
|
||||
.setName(this.name)
|
||||
.setDescription(this.description)
|
||||
);
|
||||
registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description));
|
||||
}
|
||||
|
||||
// Message command
|
||||
|
|
|
@ -16,7 +16,7 @@ export class UserCommand extends Command {
|
|||
// Register Chat Input and Context Menu command
|
||||
public override registerApplicationCommands(registry: Command.Registry) {
|
||||
registry.registerChatInputCommand((builder) =>
|
||||
builder //
|
||||
builder
|
||||
.setName(this.name)
|
||||
.setDescription(this.description)
|
||||
.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 {
|
||||
// Register Chat Input and Context Menu command
|
||||
public override registerApplicationCommands(registry: Command.Registry) {
|
||||
registry.registerChatInputCommand((builder) =>
|
||||
builder //
|
||||
.setName(this.name)
|
||||
.setDescription(this.description)
|
||||
);
|
||||
registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description));
|
||||
}
|
||||
|
||||
// Message command
|
||||
|
|
Loading…
Add table
Reference in a new issue