René's URL Explorer Experiment


Title: Redesigning Interactivity · Issue #2153 · DSharpPlus/DSharpPlus · GitHub

Open Graph Title: Redesigning Interactivity · Issue #2153 · DSharpPlus/DSharpPlus

X Title: Redesigning Interactivity · Issue #2153 · DSharpPlus/DSharpPlus

Description: Summary Per "As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently - or even added more features to it - should we compl...

Open Graph Description: Summary Per "As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently - or even add...

X Description: Summary Per "As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently ...

Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2153

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redesigning Interactivity","articleBody":"# Summary\nPer [\"As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently - or even added more features to it - should we completely rewrite it from scratch?\"](https://discord.com/channels/379378609942560770/379386730538860554/1220790222736982026), there were 135 votes to merge Interactivity with the new Commands extension, 32 votes to keep Interactivity separate and rewrite it from scratch and 6 votes to just keep the current implementation and fix the bugs.\n\n![A screenshot of the above mentioned poll with reactions/votes shown below the message.](https://github.com/user-attachments/assets/e6dcdeea-14ae-4a58-9898-b3022d4678af)\n\n\nWe've decided to do the following solution, quoted directly from @akiraveliara:\n\u003e if i had to design this for v6, i would make an Interactivity.Stateful and an Interactivity.Stateless internal package (PrivateAssets=\"all\")\nand have Commands include and frontend the first one\nhave Interactivity proper include and frontend both of them\ni do respect that interactivity integrated into and understanding commands is really good UX\nespecially if it can automatically decide the \"right thing\" for different contexts\n(though, that stuff will need some work to work with custom contexts)\n\nI will be working on the `DSharpPlus.Interactivity.Stateful` package, which will directly interface with `DSharpPlus.Commands`. Here is the following API:\n\n```cs\npublic async ValueTask PromptAsync(CommandContext context, string question, Func\u003cPromptData, ValueTask\u003e callback);\npublic async ValueTask ChooseAsync(CommandContext context, string question, IReadOnlyList\u003cstring\u003e answers, Func\u003cChooseData, ValueTask\u003e callback);\npublic async ValueTask ConfirmAsync(CommandContext context, string question, Func\u003cConfirmData ValueTask\u003e callback);\npublic async ValueTask PaginateAsync(CommandContext context, IEnumerable\u003cDiscordMessageBuilder\u003e pages, PaginationControls? controls = null);\n```\n\n\u003e [!Note]\n\u003e ALL methods above are non-blocking.\n\n# `PromptAsync`\nThis method will utilize each processor's available feature set to nicely present the question to the user:\n- Interaction-based contexts will use modals\n- Text command-based contexts will use modals via a button\n\nPrompts can timeout and it will be the callback's responsibility to check for that by reading the `PromptData.IsTimedOut` property.\n\n# `ChooseAsync`\nThe user will be presented with multiple choices through a select component and will return a single (or optionally multiple) responses within the callback data. This method has the same API timeout behavior as the `PromptAsync` method.\n\n# `ConfirmAsync`\nThis method will ask the user to confirm their decision, which will be returned via a `bool` property within the callback data. This method has the same API timeout behavior as the `PromptAsync` method.\n\n# `PaginateAsync`\n`PaginateAsync` is nearly identical to the existing pagination API that you're already familiar from the `DSharpPlus.Interactivity` extension. The `PaginationControls? controls = null` parameter will act as an override for the default `PaginationControls` defined within the interactivity/commands (tbd) configuration. The `PaginationControls` contains the control buttons (previous page, stop, next page, etc) for the user, which will attempt to be **appended** onto the message builder and will throw when it fails. `PaginationControls` will also contain a property (likely flags enum or delegate) that defines what to do when a non-author of a pagination clicks on the control buttons. The default implementations available are:\n- Act as the author\n- Copy and respond (non)ephemerally\n- Error ephemerally\n- Ignore\n\n# Notes\nIf there are any other API methods that you would like to see on `CommandContext` specifically, please comment down below.","author":{"url":"https://github.com/OoLunar","@type":"Person","name":"OoLunar"},"datePublished":"2024-11-03T20:53:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2153/DSharpPlus/issues/2153"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7389457a-ec6d-0410-7a4c-3dfe955a1993
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFFE:18E07E:3A13E9:4A91D3:698D1732
html-safe-nonced4f00ca41a95f1b7c3ae870a753827cbccbae77d5090ea024750cb6f595ce8f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkZFOjE4RTA3RTozQTEzRTk6NEE5MUQzOjY5OEQxNzMyIiwidmlzaXRvcl9pZCI6IjMyOTU5NzIwODI0MDgyOTgyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7e4b88221df024c117c924750ed2a0fe282c7eabae8f2f9d11d947d7777709b2
hovercard-subject-tagissue:2631468273
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/2153/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a840f29686e9519c3d84ed166c5070db4a7937581f506faa4ed2e516061c9f45/DSharpPlus/DSharpPlus/issues/2153
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a840f29686e9519c3d84ed166c5070db4a7937581f506faa4ed2e516061c9f45/DSharpPlus/DSharpPlus/issues/2153
og:image:altSummary Per "As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently - or even add...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOoLunar
hostnamegithub.com
expected-hostnamegithub.com
Nonec25395580e1e3bf82d705e0982a1b24255366088720fef945f1493d5e3e67954
turbo-cache-controlno-preview
go-importgithub.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git
octolytics-dimension-user_id36208721
octolytics-dimension-user_loginDSharpPlus
octolytics-dimension-repository_id67243489
octolytics-dimension-repository_nwoDSharpPlus/DSharpPlus
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id67243489
octolytics-dimension-repository_network_root_nwoDSharpPlus/DSharpPlus
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release94219dcb9c044792ec271fd5b23c73419858bef7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDSharpPlus%2FDSharpPlus%2Fissues%2F2153
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FDSharpPlus%2FDSharpPlus%2Fissues%2F2153
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=DSharpPlus%2FDSharpPlus
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153
Reloadhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153
DSharpPlus https://patch-diff.githubusercontent.com/DSharpPlus
DSharpPlushttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Please reload this pagehttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Fork 319 https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Star 1.3k https://patch-diff.githubusercontent.com/login?return_to=%2FDSharpPlus%2FDSharpPlus
Code https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Issues 92 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues
Pull requests 7 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulls
Discussions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/discussions
Actions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/actions
Projects 0 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/projects
Security 0 https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/security
Insights https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulse
Code https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus
Issues https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues
Pull requests https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulls
Discussions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/discussions
Actions https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/actions
Projects https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/projects
Security https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/security
Insights https://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DSharpPlus/DSharpPlus/issues/2153
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/DSharpPlus/DSharpPlus/issues/2153
Featurehttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues?q=type:"Feature"
Redesigning Interactivityhttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues/2153#top
https://patch-diff.githubusercontent.com/OoLunar
https://patch-diff.githubusercontent.com/akiraveliara
big-changehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22big-change%22
commandsFor issues related to DSharpPlus.Commandshttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22commands%22
enhancementhttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22enhancement%22
interactivityhttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22interactivity%22
v5.0https://github.com/DSharpPlus/DSharpPlus/milestone/10
https://github.com/OoLunar
https://github.com/OoLunar
OoLunarhttps://github.com/OoLunar
on Nov 3, 2024https://github.com/DSharpPlus/DSharpPlus/issues/2153#issue-2631468273
"As some of y'all may know, Interactivity has had multiple bugs over the years, most of them being a result from the design. Since we haven't really maintained it recently - or even added more features to it - should we completely rewrite it from scratch?"https://discord.com/channels/379378609942560770/379386730538860554/1220790222736982026
https://private-user-images.githubusercontent.com/46751150/382604389-e6dcdeea-14ae-4a58-9898-b3022d4678af.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA4NTQ0OTQsIm5iZiI6MTc3MDg1NDE5NCwicGF0aCI6Ii80Njc1MTE1MC8zODI2MDQzODktZTZkY2RlZWEtMTRhZS00YTU4LTk4OTgtYjMwMjJkNDY3OGFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjExVDIzNTYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhY2VmNzU1ZWNlZWJiYTE3ODJlZGY0MGZjNTQ0Mzk1MzY3ZDY2NzFmZjAwYmYxNmJhNmZkMjM3NzZkNGRhMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.J5u6kTvdracV2NYembmUBtueC9mrSweKkZHoJxjVQUk
@akiraveliarahttps://github.com/akiraveliara
OoLunarhttps://patch-diff.githubusercontent.com/OoLunar
akiraveliarahttps://patch-diff.githubusercontent.com/akiraveliara
big-changehttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22big-change%22
commandsFor issues related to DSharpPlus.Commandshttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22commands%22
enhancementhttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22enhancement%22
interactivityhttps://github.com/DSharpPlus/DSharpPlus/issues?q=state%3Aopen%20label%3A%22interactivity%22
Featurehttps://patch-diff.githubusercontent.com/DSharpPlus/DSharpPlus/issues?q=type:"Feature"
v5.0No due datehttps://github.com/DSharpPlus/DSharpPlus/milestone/10
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.