Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit ffb3de5

Browse files
author
jonas747
committed
Merge branch 'yagpdb' of github.com:jonas747/discordgo into yagpdb
2 parents 608dd63 + fc7ed1f commit ffb3de5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

message.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ package discordgo
1111

1212
import (
1313
"encoding/json"
14+
"fmt"
1415
"io"
1516
"regexp"
1617
"strconv"
@@ -101,6 +102,10 @@ func (m *Message) GetChannelID() int64 {
101102
return m.ChannelID
102103
}
103104

105+
func (m *Message) Link() string {
106+
return fmt.Sprintf("https://discord.com/channels/%v/%v/%v", m.GuildID, m.ChannelID, m.ID)
107+
}
108+
104109
// File stores info about files you e.g. send in messages.
105110
type File struct {
106111
Name string

0 commit comments

Comments
 (0)