Reference message has been implemented. It copies the message link into the clipboard.
@@ -398,6 +398,13 @@ func NewWindow(app *tview.Application, discord *discordgo.Session) (*Window, err
return nil
}
+ if event.Rune() == 'l' {
+ copyError := clipboard.WriteAll(fmt.Sprintf("https://discordapp.com/channels/@me/%s/%s", message.ChannelID, message.ID))
+ if copyError != nil {
+ window.ShowErrorDialog(fmt.Sprintf("Error copying message link: %s", copyError.Error()))
+ }
+ }
+
if event.Key() == tcell.KeyDelete {
if message.Author.ID == window.session.State.User.ID {
window.askForMessageDeletion(message.ID, true)
