// Discord REST route builders used outside the discord adapter.
// Keeps route strings centralized so non-adapter modules don't import discord.js Routes.
function encodePart(value) {
    return encodeURIComponent(value);
}
export const discordRoutes = {
    channel(channelId) {
        return `/channels/${channelId}`;
    },
    channelMessages(channelId) {
        return `/channels/${channelId}/messages`;
    },
    channelMessageOwnReaction(channelId, messageId, emoji) {
        return `/channels/${channelId}/messages/${messageId}/reactions/${encodePart(emoji)}/@me`;
    },
    threads(channelId, messageId) {
        return `/channels/${channelId}/messages/${messageId}/threads`;
    },
    threadMembers(threadId, userId) {
        return `/channels/${threadId}/thread-members/${userId}`;
    },
    applicationCommands(appId) {
        return `/applications/${appId}/commands`;
    },
    applicationCommand(appId, commandId) {
        return `/applications/${appId}/commands/${commandId}`;
    },
    applicationGuildCommands(appId, guildId) {
        return `/applications/${appId}/guilds/${guildId}/commands`;
    },
};
