Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Add docs for message.go [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Oct 6, 2019
1 parent eeaa955 commit f8e74cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discordutil/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package discordutil

import "github.com/Bios-Marcel/discordgo"

// MentionsCurrentUserExplicitly checks whether the message contains any
// explicit mentions for the user associated with the currently logged in user.
func MentionsCurrentUserExplicitly(state *discordgo.State, message *discordgo.Message) bool {
for _, user := range message.Mentions {
if user.ID == state.User.ID {
Expand Down

0 comments on commit f8e74cf

Please sign in to comment.