mirror of
https://github.com/Xevion/banner.git
synced 2026-01-31 08:23:35 -06:00
Prevent fatal crashes from DM commands
This commit is contained in:
@@ -159,7 +159,7 @@ func main() {
|
||||
}
|
||||
|
||||
// Log command invocation
|
||||
log.Info().Str("name", name).Str("user", interaction.Member.User.Username).Dict("options", options).Msg("Command Invoked")
|
||||
log.Info().Str("name", name).Str("user", GetUsername(interaction)).Dict("options", options).Msg("Command Invoked")
|
||||
|
||||
// Call handler
|
||||
err := handler(internalSession, interaction)
|
||||
|
||||
Reference in New Issue
Block a user