diff --git a/main.go b/main.go index a6a1a4d..9710ac3 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "context" "flag" "fmt" - "github.com/disgoorg/disgo/handler/middleware" "log/slog" "os" "os/signal" @@ -17,14 +16,16 @@ import ( "github.com/disgoorg/disgo/events" "github.com/disgoorg/disgo/gateway" "github.com/disgoorg/disgo/handler" + "github.com/disgoorg/disgo/handler/middleware" "github.com/disgoorg/snowflake/v2" + "github.com/spf13/viper" + "github.com/myrkvi/heimdallr/commands" "github.com/myrkvi/heimdallr/components" _ "github.com/myrkvi/heimdallr/config" "github.com/myrkvi/heimdallr/listeners" "github.com/myrkvi/heimdallr/model" "github.com/myrkvi/heimdallr/scheduled_tasks" - "github.com/spf13/viper" ) var rmGlobalCommands = flag.Bool("rm-global-commands", false, "Remove global commands") diff --git a/utils/interaction_log.go b/utils/interaction_log.go index 5f06a50..b3bc9be 100644 --- a/utils/interaction_log.go +++ b/utils/interaction_log.go @@ -25,7 +25,7 @@ func LogInteraction(interactionName string, interaction discord.Interaction) { slog.Info(fmt.Sprintf("Interaction %s (%s) received", interactionName, type_), "user_id", interaction.User().ID, "guild_id", interaction.GuildID(), - "channel_id", interaction.ChannelID(), + "channel_id", interaction.Channel().ID(), "delay", delay, ) }