add question to utilGetMentioned for future refactoring

This commit is contained in:
da
2021-04-23 11:16:31 +02:00
parent 3cf21ba510
commit 9707a60934
+1
View File
@@ -418,6 +418,7 @@ func displayBotStats(cid string) {
discord.ChannelMessageSend(cid, buf.String()) discord.ChannelMessageSend(cid, buf.String())
} }
// what did I start here?
func utilGetMentioned(s *discordgo.Session, m *discordgo.MessageCreate) *discordgo.User { func utilGetMentioned(s *discordgo.Session, m *discordgo.MessageCreate) *discordgo.User {
for _, mention := range m.Mentions { for _, mention := range m.Mentions {
if mention.ID != s.State.Ready.User.ID { if mention.ID != s.State.Ready.User.ID {