fuchsidev / das-weisse-auge-official

1 stars 0 forks source link

New Discord Features #40

Open fuchsidev opened 3 years ago

fuchsidev commented 3 years ago

Since 2020 Discord dedicates more time to expanding the Bot experience on Discord. This Issue will list several new features announced and ideas on how I could use it.

Format

**Feature**
Doc URL: 
Blog URL:
Description:

- [ ] Beta Release by Discord
- [ ] Officially released by Discord
- [ ] Supported by Discord.py (yet)

How DWA could use this:

Features

Slash Commands Doc URL: https://discord.com/developers/docs/interactions/slash-commands Blog URL: https://blog.discord.com/slash-commands-are-here-8db0a385d9e6 Description: Similar to existing official Discord Slash Commands (like /tableflip), Slash Commands for Bots will support the individual Bot commands and subcommands including autocomplete.

How DWA could use this: Slash Commands would greatly improve the usability of DWA, by offering autocomplete to speed up command usage, as well as make commands like !char and the sub commands more accessible. Once the feature is supported by discord.py, I will definitly implement it.

Buttons Doc URL: https://discord.com/developers/docs/interactions/message-components#buttons Blog URL: https://support.discord.com/hc/de/articles/1500012250861-Bots-Buttons Description: Buttons allow to press an actual button in chat messages to trigger certain events.

How DWA could use this: We currently use reactions to navigate menus and get user inputs (e.g. select number from list). Buttons essentially function the same, with the exception for being actually build to do this. Adding and removing reactions is rate limited per guild, buttons are not

Selects Doc URL: https://discord.com/developers/docs/interactions/message-components#select-menus Blog URL: https://support.discord.com/hc/en-us/articles/4403375759255-Bots-Select-Menus Description: Selects are essentially Dropdown Lists that function similar to buttons

How DWA could use this: This would greatly improve usability, by allowing users to select options from a dropdown list on e.g. !cards instead of using the current system (reaction from 1-10, chat message if > 10 options).

Threads Doc URL: https://discord.com/developers/docs/topics/threads Blog URL: https://support.discord.com/hc/de/articles/4403205878423-Threads Description:

How DWA could use this: I'm not sure yet if this is useful for DWA. It could be used to make special command threads for individual players or groups, but I dont really see the advantage to that. Need to do more research.

Message Content Intent Doc URL: Blog URL: https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Access-Deprecation-for-Verified-Bots Description:

How DWA could use this: This "feature" will force bot developers to switch to slash commands. Since discord.py currently does not support them, this would break DWA. I'll have to solve this by april 2022, which is when members content intent is expected to release.

fuchsidev commented 3 years ago

Soooooo. discord.py has been archived as of yesterday. https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1 This means I either have to wait for a well maintained fork or switch to eitzer JS or Rust to keep developing DWA.

Additionally, as of April 2022 Slash commands will be mandatory as message.content access will be restricted. I'll wait a couple days before deciding anything. Perhaps I can find a reliable fork