Skip to content

Commit

Permalink
fix: Comply with Golang-CI (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
myrkvi committed Aug 21, 2024
2 parents e5dcb07 + fdbafa3 commit 7e8debb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"flag"
"fmt"
"github.com/disgoorg/disgo/handler/middleware"
"log/slog"
"os"
"os/signal"
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion utils/interaction_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}

0 comments on commit 7e8debb

Please sign in to comment.