forked from pothtonswer/discordmuffin
Add Member.Mention
This commit is contained in:
parent
d7a58a4f11
commit
e5c968d7a6
1 changed files with 5 additions and 0 deletions
|
@ -602,6 +602,11 @@ type Member struct {
|
||||||
Roles []string `json:"roles"`
|
Roles []string `json:"roles"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mention creates a member mention
|
||||||
|
func (m *Member) Mention() string {
|
||||||
|
return "<@!" + m.User.ID + ">"
|
||||||
|
}
|
||||||
|
|
||||||
// A Settings stores data for a specific users Discord client settings.
|
// A Settings stores data for a specific users Discord client settings.
|
||||||
type Settings struct {
|
type Settings struct {
|
||||||
RenderEmbeds bool `json:"render_embeds"`
|
RenderEmbeds bool `json:"render_embeds"`
|
||||||
|
|
Loading…
Reference in a new issue