Add EncodeParams function with docs from net/url, multi-line log, generalize GetUsername into GetUser

This commit is contained in:
2024-01-31 16:33:03 -06:00
parent 80a513184b
commit 9344f1c365
2 changed files with 53 additions and 5 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func main() {
options.Str(option.Name, fmt.Sprintf("%v", option.Value))
}
event := log.Info().Str("name", name).Str("user", GetUsername(interaction)).Dict("options", options)
event := log.Info().Str("name", name).Str("user", GetUser(interaction).Username).Dict("options", options)
// If the command was invoked in a guild, add guild & channel info to the log
if interaction.Member != nil {