This commit is contained in:
Atridad Lahiji 2023-06-29 21:45:07 -06:00
parent 28b77131cf
commit 41d12b07a9
No known key found for this signature in database
4 changed files with 4 additions and 12 deletions

View file

@ -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) =>

View file

@ -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

View file

@ -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))

View file

@ -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