mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 22:06:34 -06:00
Fix bad merge from stash involving GetUsername/command event log
This commit is contained in:
4
main.go
4
main.go
@@ -158,7 +158,7 @@ func main() {
|
|||||||
options.Str(option.Name, fmt.Sprintf("%v", option.Value))
|
options.Str(option.Name, fmt.Sprintf("%v", option.Value))
|
||||||
}
|
}
|
||||||
|
|
||||||
event := log.Info().Str("name", name).Str("user", interaction.Member.User.Username).Dict("options", options)
|
event := log.Info().Str("name", name).Str("user", GetUsername(interaction)).Dict("options", options)
|
||||||
|
|
||||||
// If the command was invoked in a guild, add guild & channel info to the log
|
// If the command was invoked in a guild, add guild & channel info to the log
|
||||||
if interaction.Member != nil {
|
if interaction.Member != nil {
|
||||||
@@ -180,7 +180,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Log command invocation
|
// Log command invocation
|
||||||
log.Info().Str("name", name).Str("user", GetUsername(interaction)).Dict("options", options).Msg("Command Invoked")
|
event.Msg("Command Invoked")
|
||||||
|
|
||||||
// Call handler
|
// Call handler
|
||||||
err := handler(internalSession, interaction)
|
err := handler(internalSession, interaction)
|
||||||
|
|||||||
Reference in New Issue
Block a user