Skip to content

Instantly share code, notes, and snippets.

View TheJazzDev's full-sized avatar
🎯
Focusing

Jazz Dev TheJazzDev

🎯
Focusing
View GitHub Profile
import { discordRequest } from './utils';
export const hasGuildCommands = async (appId, guildId, commands) => {
if (guildId === '' || appId === '') return;
commands.forEach((c) => hasGuildCommand(appId, guildId, c));
};
const hasGuildCommand = async (appId, guildId, command) => {
const endpoint = `applications/${appId}/guilds/${guildId}/commands`;