Skip to main content
Glama

Discord MCP Server

by mastra-ai
delete-commands.ts618 B
// delete-commands.ts import { REST, Routes } from "discord.js"; import { config } from "dotenv"; config(); const rest = new REST({ version: "10" }).setToken( process.env.DISCORD_BOT_TOKEN! ); // Delete all commands async function deleteCommands() { try { console.log("Started deleting application (/) commands."); await rest.put( Routes.applicationCommands(process.env.DISCORD_CLIENT_ID!), { body: [] } // Empty array removes all commands ); console.log("Successfully deleted all application (/) commands."); } catch (error) { console.error(error); } } deleteCommands();

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mastra-ai/discord-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server