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

Integrate Discord interactions and slash commands into Séance #10

Open
AksanDotDev opened this issue May 20, 2022 · 2 comments
Open

Integrate Discord interactions and slash commands into Séance #10

AksanDotDev opened this issue May 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@AksanDotDev
Copy link
Contributor

So, discussed, elsewhere but not here, the v6 and v7 API decommission was pushed back to 2023 from earlier this year means the current version of Seance will be running for a good while yet, however there is still that impending sunset to consider.

Additionally, the 2.0 version of the discord.py API includes new features like bots sending stickers, and slash based commands (these could useful for more elegant config/message editing), which are worth investigating.

I'd be more than happy to explore an API update and new features, but wanted to reach out here and ask if there were any existing plans that I could contribute to, or a joint effort might be, a thing? Basically wanted to open the topic for discussion!

@Qyriad
Copy link
Owner

Qyriad commented Jul 10, 2022

Hi there, sorry for the late reply. We're absolutely planning on migrating Séance to modern Discord API and Discord.py versions. A bare migration should be happening shortly, but as for using the more advanced features, there are some things to work out. Interactions could provide an excellent way to implement message editing and such, but for any server with more than one Séance bot added, each bot would then add its own version of the commands, causing lots of visually-duplicate commands.

I'm not sure how to work around this besides implementing a some sort of standalone daemon bot that globally handles slash commands and then forwards them to the appropriate Séance bots, but that sounds incredibly messy. Suggestions are definitely welcome for a cleaner solution.

@AksanDotDev
Copy link
Contributor Author

So, my thought here isn't strictly one solved on the Seance bot side, but server integration configuration now allows you to limit access to slash commands to given roles. This could be used similarly to the current --ref-user-id argument to limit access to the slash commands and prevent this command collision. Of course this could still lead to mess for anyone handling multiple instances themselves, but I would say it can remove some degree of mess.

The other part would be to simply return to the --prefix style solution and have the bots bind their slash commands with a prefix. It might not stop the overall clutter problem, but could mean in a few character you can filter down to the slash commands on the intended bot.

Both would probably need some practical testing however. On a more general note I will be trying to put some more time into code soon if stuff stops being added to my plate so if the opportunity to contribute arises I'd be interested.

@Lunaphied Lunaphied changed the title Discord.py 2.0 Integrate Discord interactions and slash commands into Séance Jul 17, 2023
@Lunaphied Lunaphied added the enhancement New feature or request label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants