// Helpers for working with normalized platform channel references in commands.
export function isThreadChannel(channel) {
    return channel?.kind === 'thread';
}
export function isTextChannel(channel) {
    return channel?.kind === 'text';
}
export function getRootChannelId(channel) {
    if (!channel) {
        return null;
    }
    if (channel.kind === 'thread') {
        return channel.parentId || channel.id;
    }
    return channel.id;
}
