Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord Slash Commands Support #246

Open
TheBSGamer opened this issue Jun 5, 2022 · 1 comment
Open

Discord Slash Commands Support #246

TheBSGamer opened this issue Jun 5, 2022 · 1 comment

Comments

@TheBSGamer
Copy link

Are there any plans to add support for Discord's slash command system? If there's a way to make this work for a layman like myself I'd be glad to give it a shot :)
https://discord.com/developers/docs/interactions/application-commands

It looks like a POST just needs to be made to the bot to add the functionality but I'm not experienced enough with API's to know how to do it with Discord.

Expected Behavior

NA

Current Behavior

NA

Possible Solution

NA

Steps to Reproduce (for bugs)

NA

Context

NA

Your Environment

  • Module version used: 0.14.0
  • Operating System and PowerShell version: Windows 10 PowerShell 7.2.0
@devblackops
Copy link
Member

@TheBSGamer PoshBot doesn't expose a web API so slash commands won't work (they POST to an endpoint provided by the bot). Slack has something called Socket mode, which allows the bot to receive slash commands, but through a websocket. This means the bot doesn't need to be accessible on the internet. Socket mode is something I'd like to explore so see if it would work and how we'd expose the PoshBot plugins as slash commands. If Discord has something similar to Slack's Socket mode, then this might be possible in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants