OoLunar / DocBot

DocBot: Grab documentation from another .NET assembly and make it available through Discord.
Other
2 stars 2 forks source link

feat: cref implementation #1

Closed InFTord closed 1 year ago

InFTord commented 1 year ago

my current idea for crefs implementation is basically: make crefs work like a command that you can copy

OoLunar commented 1 year ago

To add missing context:

Discord recently added extended support for markdown. This includes headers and more specifically: hyperlinks. Additionally, Discord has had support for executing slash commands via copying (see image below.)

image

The idea here is to combine the two features to easily allow viewing other documentation referenced by cref in the XML docs.

Using the methods above, we can combine the two to create text like the following:

[/documentation member:SendMessageAsync(string? content)](</documentation:1039719636058513434>)

which would render like such:

/documentation member:SendMessageAsync(string? content)

InFTord commented 1 year ago

24 minutes later: it doesn't work, thanks discord

OoLunar commented 1 year ago

After further investigation, we've discovered the following:

This makes this feature fundamentally impossible without changes from Discord. This issue will be reopened if Discord ever adds support for both of the above features.