From 113fcbf2d18e0e53bed5ebaa7ea00401ef947195 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 25 Jun 2025 19:12:34 -0400 Subject: [PATCH] adding author id to message struct --- bolt.go | 1 + command.go | 1 + 2 files changed, 2 insertions(+) diff --git a/bolt.go b/bolt.go index 2b633d5..5416231 100644 --- a/bolt.go +++ b/bolt.go @@ -193,6 +193,7 @@ func (b *bolt) handleCommand(msg *dg.MessageCreate, s *dg.Session, server *dg.Gu //run command payload res, err := run.Payload(Message{ Author: msg.Author.Username, + ID: msg.Author.ID, Words: words, Content: msg.Content, Channel: channel.Name, diff --git a/command.go b/command.go index 3c6b6dc..aa35cf7 100644 --- a/command.go +++ b/command.go @@ -17,6 +17,7 @@ type Payload func(msg Message) (string, error) // message information passed to payload function type Message struct { Author string //username of message author + ID string //discord ID of message author Words []string //words from message split on whitespace Content string //entire message content Channel string //message channel