From 81ac111e71ba842635e1c40cd4ab2b36acb33375 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 29 Jul 2023 18:00:20 -0600 Subject: [PATCH] epic copy paste moment --- commands/guild.go | 2 +- go.mod | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/guild.go b/commands/guild.go index 7e492ec..48710a2 100644 --- a/commands/guild.go +++ b/commands/guild.go @@ -164,7 +164,7 @@ func GetSortedChannels(guildId string, withCategories bool, withPrivate bool) [] } sort.Slice(keys, func(i, j int) bool { pa, _ := discord.ParseSnowflake(keys[i]) - pb, _ := discord.ParseSnowflake(keys[i]) + pb, _ := discord.ParseSnowflake(keys[j]) ca, _ := client.ChannelStore.Channel(discord.ChannelID(pa)) cb, _ := client.ChannelStore.Channel(discord.ChannelID(pb)) diff --git a/go.mod b/go.mod index ab07d3e..338a935 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.20 require ( atomicgo.dev/keyboard v0.2.9 // indirect github.com/containerd/console v1.0.3 // indirect - github.com/diamondburned/arikawa v1.3.2 // indirect github.com/diamondburned/arikawa/v3 v3.3.1 // indirect github.com/diamondburned/ningen/v3 v3.0.0 // indirect github.com/ergochat/readline v0.0.5 // indirect