Skip to content

Commit 7e8debb

Browse files
authored
fix: Comply with Golang-CI (#11)
2 parents e5dcb07 + fdbafa3 commit 7e8debb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"flag"
66
"fmt"
7-
"github.com/disgoorg/disgo/handler/middleware"
87
"log/slog"
98
"os"
109
"os/signal"
@@ -17,14 +16,16 @@ import (
1716
"github.com/disgoorg/disgo/events"
1817
"github.com/disgoorg/disgo/gateway"
1918
"github.com/disgoorg/disgo/handler"
19+
"github.com/disgoorg/disgo/handler/middleware"
2020
"github.com/disgoorg/snowflake/v2"
21+
"github.com/spf13/viper"
22+
2123
"github.com/myrkvi/heimdallr/commands"
2224
"github.com/myrkvi/heimdallr/components"
2325
_ "github.com/myrkvi/heimdallr/config"
2426
"github.com/myrkvi/heimdallr/listeners"
2527
"github.com/myrkvi/heimdallr/model"
2628
"github.com/myrkvi/heimdallr/scheduled_tasks"
27-
"github.com/spf13/viper"
2829
)
2930

3031
var rmGlobalCommands = flag.Bool("rm-global-commands", false, "Remove global commands")

utils/interaction_log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func LogInteraction(interactionName string, interaction discord.Interaction) {
2525
slog.Info(fmt.Sprintf("Interaction %s (%s) received", interactionName, type_),
2626
"user_id", interaction.User().ID,
2727
"guild_id", interaction.GuildID(),
28-
"channel_id", interaction.ChannelID(),
28+
"channel_id", interaction.Channel().ID(),
2929
"delay", delay,
3030
)
3131
}

0 commit comments

Comments
 (0)