Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

Role menu subcommands #46

Closed Kardbord closed 2 years ago

Kardbord commented 2 years ago

Renames /create-role-menu to /role-select-menu and offers the subcommands create and update which allow an admin to update the menus after creation.

I also did some more thorough testing of the role select menus and found that interacting with large menus is painfully slow. To that end, I've added some configurable code profiling options to assist in identifying the slow parts of the code. They are agnostic to this particular issue, so I'm going to leave them in for next time! pprof is pretty slick. :)

With any luck, I'll be able to get the menu interactions running a bit quicker as part of this PR. As time allows, I may also try to instrument some even more robust profiling capabilities by adding user defined trace regions to interaction handlers.

Kardbord commented 2 years ago