vyzhon
vyzhon
SIASapphire - Imagine a framework
Created by vyzhon on 12/2/2022 in #sapphire-support
ChannelTypes not detected as a difference in slash commands
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
)
);
9 replies