ChannelTypes not detected as a difference in slash commands

If you were to update a slash commands channel option's channel types, sapphire doesnt detect it and apply the update accordingly, youd have to delete the command and re-register it for the changes to apply
5 Replies
vyzhon
vyzhonOP3y ago
import { Command } from "@sapphire/framework";
import { ChannelType } from "discord-api-types/v9";

public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand(
(builder) =>
builder
.setName("test")
.setDescription("test")
.addChannelOption((opt) =>
opt
.setName("channel")
.setDescription("")
.addChannelTypes(ChannelType.GuildText) // <- if you were to change/add this sapphire doesnt detect a difference
)
);
import { Command } from "@sapphire/framework";
import { ChannelType } from "discord-api-types/v9";

public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand(
(builder) =>
builder
.setName("test")
.setDescription("test")
.addChannelOption((opt) =>
opt
.setName("channel")
.setDescription("")
.addChannelTypes(ChannelType.GuildText) // <- if you were to change/add this sapphire doesnt detect a difference
)
);
Favna
Favna3y ago
@Vladdy
vladdy
vladdy3y ago
Oop I'll handle it
Favna
Favna3y ago
@Vladdy you didn't handle it
vladdy
vladdy3y ago
Sorryyy I'm stretched super thin especially bc its test weeks
Want results from more Discord servers?
Add your server