logviewer icon indicating copy to clipboard operation
logviewer copied to clipboard

Getting DM Channel ID & DM Message Jumplinks

Open scragly opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Some modmail DM messages need to be reported to Discord Trust and Safety. To make a report, we require jump links to the message(s) specifically as references so the T&S team can verify anything they need to.

There doesn't appear to be a simple way to get the jump link for a specific message, or at least the DM channel ID in order to build a jump link by hand.

There is the ability to eval it with some work, but that's reliant on enabling it and having the correct perms to be able to use it, which makes it not a suitable solution.

Describe the solution you'd like I'd like to have a ?jumplink <message_id> command, and optionally, the DM channel ID to be displayed in the initial thread embed footer.

You could possibly also make the channel ID and jumplinks available in the logviewer.

Describe alternatives you've considered Eval is the only alternative I could think of, which I've outlined in the description.

Who will this benefit I do think it could benefit a large portion of users, enabling easy jumplink generation for reports. I suspect a lot of people are either relying on eval, or perhaps choose to disregard reporting because of the hurdle of getting the necessary info.

scragly avatar Mar 07 '21 04:03 scragly

Wouldn't it be nice to also add this to the logviewer incase any thread gets closed that needs to be reported to discord?

Talking about adding a "copy messagelink" button to logviewer when viewing the logs for each message ( https://github.com/kyb3r/logviewer/issues/27 )

lorenzo132 avatar Mar 07 '21 08:03 lorenzo132

I've created a PR based on the suggestion over at kyb3r/modmail#2964

Regarding the logviewer, I think that may be a little more involved as I don't think the DM Channel ID data exists on it's side of things, so the log data sent from modmail to logviewer/mongodb may need to add it, plus the logviewer will need to add the respective model attributes and page formatting, while accounting for the fact historical data won't have it.

As it's a bit more than a quick PR, I didn't worry about it for now.

scragly avatar Mar 07 '21 13:03 scragly

Keeping open for the logviewer aspect.

?msglink has been added in v3.8.5 as per PR kyb3r/modmail#2964

fourjr avatar Mar 07 '21 15:03 fourjr