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
vyzhon2y 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
Favna2y ago
@Vladdy
vladdy
vladdy2y ago
Oop I'll handle it
Favna
Favna2y ago
@Vladdy you didn't handle it
vladdy
vladdy2y ago
Sorryyy I'm stretched super thin especially bc its test weeks
Want results from more Discord servers?
Add your server