Vann
Vann
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
ty sir @Favna
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
2 hour because of "c"
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
yeah, its true for me, since its now really showed on ide
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
xD
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
yes, for me
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
wtf
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
oke for now i hate c
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
oooooooo
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
No description
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
hehe
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
No description
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
yap its working
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
💀
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
found what are you mean
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
No description
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
ahhh, my vscode
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
hehe
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
hmm, i searching for the capital c, and found nothing?, or im blinded
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
pepeHmm
67 replies
SIASapphire - Imagine a framework
Created by Vann on 10/26/2023 in #sapphire-support
plugin-subcommands: subcommands with preconditions
import { ApplyOptions } from '@sapphire/decorators';
import { Listener, UserError, } from '@sapphire/framework';
import { ChatInputSubcommandDeniedPayload, SubcommandPluginEvents } from '@sapphire/plugin-subcommands';
import { EmbedBuilder } from 'discord.js';

@ApplyOptions<Listener.Options>({
event: SubcommandPluginEvents.ChatInputSubcommandDenied
})

export class UserEvent extends Listener<typeof SubcommandPluginEvents.ChatInputSubcommandDenied> {
public override async run({ message: content }: UserError, { interaction }: ChatInputSubcommandDeniedPayload) {

return interaction.reply({
embeds: [
new EmbedBuilder()
.setDescription(content)
.setColor("Red")
]
});
}
}
import { ApplyOptions } from '@sapphire/decorators';
import { Listener, UserError, } from '@sapphire/framework';
import { ChatInputSubcommandDeniedPayload, SubcommandPluginEvents } from '@sapphire/plugin-subcommands';
import { EmbedBuilder } from 'discord.js';

@ApplyOptions<Listener.Options>({
event: SubcommandPluginEvents.ChatInputSubcommandDenied
})

export class UserEvent extends Listener<typeof SubcommandPluginEvents.ChatInputSubcommandDenied> {
public override async run({ message: content }: UserError, { interaction }: ChatInputSubcommandDeniedPayload) {

return interaction.reply({
embeds: [
new EmbedBuilder()
.setDescription(content)
.setColor("Red")
]
});
}
}
67 replies