mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 02:23:34 -06:00
Add EncodeParams function with docs from net/url, multi-line log, generalize GetUsername into GetUser
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user