Can Discord bots execute slash commands from other bots?

I’m trying to make my Discord bot trigger slash commands that belong to different bots on the server. When my bot sends a message containing something like /info, it just posts the text /info in the chat instead of actually running the slash command function.

I’ve been working on this for a while and can’t figure out if it’s even technically possible for one bot to invoke another bot’s slash commands. The slash command system seems to only work when users type them directly.

Has anyone managed to get this working? I’m wondering if there’s a specific way to format the command or if Discord’s API has some method I’m missing. Any help would be great since I’m stuck on this feature for my project.

Nope, you can’t execute slash commands from one bot to another through Discord’s API. The system requires direct user interaction - when your bot sends /info, Discord just sees it as regular text, not a command. I ran into this same issue when building a bot system last year. Your best bet is using webhooks or direct API calls between the bots (assuming you control both). It’s more complex but actually works for triggering functions between bots without needing slash commands.

This is a common misconception about Discord’s slash commands. The system is built for user interactions, not bots triggering other bots. When Discord gets a slash command, it creates an interaction object with user context and permissions that doesn’t exist when a bot tries to fake it.

I’ve run into this same issue with enterprise Discord setups. We solved it by creating a shared database where Bot A writes requests and Bot B checks them periodically. You could also use Discord’s webhook system to send HTTP requests directly between your bots if they’re hosted on accessible servers. Both approaches skip the slash command limitation while getting you the same result.

yeah, discord is strict about this. bots can’t just trigger each other’s slash commands. you’ll have to set up some direct comms, like using a shared db or something similar. redis can help, but if both are on the same server, file sharing might work too.