Skip to content

Commit cf3f581

Browse files
committed
update disgo version
1 parent e6cf18c commit cf3f581

File tree

9 files changed

+49
-37
lines changed

9 files changed

+49
-37
lines changed

dbot/bot.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package dbot
33
import (
44
"context"
55

6-
"github.com/KittyBot-Org/KittyBotGo/db"
76
"github.com/disgoorg/disgo"
87
"github.com/disgoorg/disgo/bot"
98
"github.com/disgoorg/disgo/cache"
@@ -15,6 +14,8 @@ import (
1514
"github.com/disgoorg/log"
1615
"github.com/disgoorg/snowflake/v2"
1716
"github.com/disgoorg/utils/paginator"
17+
18+
"github.com/KittyBot-Org/KittyBotGo/db"
1819
)
1920

2021
func New(logger log.Logger, config Config, version string) *Bot {
@@ -46,7 +47,7 @@ func (b *Bot) SetupBot(listeners ...bot.EventListener) (err error) {
4647
bot.WithLogger(b.Logger),
4748
bot.WithGatewayConfigOpts(gateway.WithIntents(gateway.IntentGuilds, gateway.IntentGuildVoiceStates, gateway.IntentMessageContent, gateway.IntentAutoModerationExecution)),
4849
bot.WithCacheConfigOpts(
49-
cache.WithCacheFlags(cache.FlagVoiceStates, cache.FlagMembers, cache.FlagChannels, cache.FlagGuilds, cache.FlagRoles),
50+
cache.WithCaches(cache.FlagVoiceStates, cache.FlagMembers, cache.FlagChannels, cache.FlagGuilds, cache.FlagRoles),
5051
cache.WithMemberCachePolicy(func(member discord.Member) bool {
5152
return member.User.ID == b.Client.ID()
5253
}),

dbot/command_checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func HasHistoryItems(b *Bot) handler.Check[*events.ApplicationCommandInteraction
7070

7171
func IsMemberConnectedToVoiceChannel(b *Bot) handler.Check[*events.ApplicationCommandInteractionCreate] {
7272
return func(ctx *events.ApplicationCommandInteractionCreate) bool {
73-
if voiceState, ok := ctx.Client().Caches().VoiceStates().Get(*ctx.GuildID(), ctx.User().ID); !ok || voiceState.ChannelID == nil {
73+
if voiceState, ok := ctx.Client().Caches().VoiceState(*ctx.GuildID(), ctx.User().ID); !ok || voiceState.ChannelID == nil {
7474
if err := ctx.CreateMessage(discord.MessageCreate{
7575
Content: "You need to be connected to a voice channel to play music.",
7676
Flags: discord.MessageFlagEphemeral,

dbot/commands/play.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ func playHandler(b *dbot.Bot) handler.CommandHandler {
8484
return func(e *events.ApplicationCommandInteractionCreate) error {
8585
data := e.SlashCommandInteractionData()
8686

87-
voiceState, ok := b.Client.Caches().VoiceStates().Get(*e.GuildID(), e.User().ID)
87+
voiceState, ok := b.Client.Caches().VoiceState(*e.GuildID(), e.User().ID)
8888
if !ok || voiceState.ChannelID == nil {
8989
return e.CreateMessage(responses.CreateErrorf("You must be in a voice channel to use this command."))
9090
}
9191

92-
channel, _ := e.Client().Caches().Channels().GetGuildAudioChannel(*voiceState.ChannelID)
93-
selfMember, _ := e.Client().Caches().GetSelfMember(*e.GuildID())
94-
if perms := b.Client.Caches().GetMemberPermissionsInChannel(channel, selfMember); perms.Missing(discord.PermissionVoiceConnect) {
92+
channel, _ := e.Client().Caches().GuildAudioChannel(*voiceState.ChannelID)
93+
selfMember, _ := e.Client().Caches().SelfMember(*e.GuildID())
94+
if perms := b.Client.Caches().MemberPermissionsInChannel(channel, selfMember); perms.Missing(discord.PermissionVoiceConnect) {
9595
return e.CreateMessage(responses.CreateErrorf("It seems like I don't have permissions to join your voice channel."))
9696
}
9797

@@ -112,13 +112,13 @@ func playHandler(b *dbot.Bot) handler.CommandHandler {
112112
if err := b.DB.PlayHistory().Add(e.User().ID, query, track.Info().Title); err != nil {
113113
b.Logger.Error("Failed to add track to play history: ", err)
114114
}
115-
playAndQueue(b, e.BaseInteraction, track)
115+
playAndQueue(b, e, track)
116116
},
117117
func(playlist lavalink.AudioPlaylist) {
118118
if err := b.DB.PlayHistory().Add(e.User().ID, query, playlist.Name()); err != nil {
119119
b.Logger.Error("Failed to add track to play history: ", err)
120120
}
121-
playAndQueue(b, e.BaseInteraction, playlist.Tracks()...)
121+
playAndQueue(b, e, playlist.Tracks()...)
122122
},
123123
func(tracks []lavalink.AudioTrack) {
124124
if err := b.DB.PlayHistory().Add(e.User().ID, query, data.String("query")); err != nil {
@@ -221,14 +221,14 @@ func playAutocompleteHandler(b *dbot.Bot) handler.AutocompleteHandler {
221221
}
222222
}
223223

224-
func playAndQueue(b *dbot.Bot, i discord.BaseInteraction, tracks ...lavalink.AudioTrack) {
224+
func playAndQueue(b *dbot.Bot, i discord.Interaction, tracks ...lavalink.AudioTrack) {
225225
player := b.MusicPlayers.Get(*i.GuildID())
226226
if player == nil {
227227
player = b.MusicPlayers.New(*i.GuildID(), dbot.PlayerTypeMusic, dbot.LoopingTypeOff)
228228
b.MusicPlayers.Add(player)
229229
}
230230
var voiceChannelID snowflake.ID
231-
if voiceState, ok := b.Client.Caches().VoiceStates().Get(*i.GuildID(), i.User().ID); !ok || voiceState.ChannelID == nil {
231+
if voiceState, ok := b.Client.Caches().VoiceState(*i.GuildID(), i.User().ID); !ok || voiceState.ChannelID == nil {
232232
if _, err := b.Client.Rest().UpdateInteractionResponse(i.ApplicationID(), i.Token(), responses.UpdateErrorComponentsf("You need to be in a voice channel.", nil)); err != nil {
233233
b.Logger.Error("Failed to update error message: ", err)
234234
}
@@ -237,8 +237,8 @@ func playAndQueue(b *dbot.Bot, i discord.BaseInteraction, tracks ...lavalink.Aud
237237
voiceChannelID = *voiceState.ChannelID
238238
}
239239

240-
if voiceState, ok := b.Client.Caches().VoiceStates().Get(*i.GuildID(), b.Client.ID()); !ok || voiceState.ChannelID == nil || *voiceState.ChannelID != voiceChannelID {
241-
if err := b.Client.Connect(context.TODO(), *i.GuildID(), voiceChannelID); err != nil {
240+
if voiceState, ok := b.Client.Caches().VoiceState(*i.GuildID(), b.Client.ID()); !ok || voiceState.ChannelID == nil || *voiceState.ChannelID != voiceChannelID {
241+
if err := b.Client.UpdateVoiceState(context.TODO(), *i.GuildID(), &voiceChannelID, false, false); err != nil {
242242
if _, err = b.Client.Rest().UpdateInteractionResponse(i.ApplicationID(), i.Token(), responses.UpdateErrorComponentsf("Failed to connect to your voice channel. Please try again.", nil)); err != nil {
243243
b.Logger.Error("Failed to update error message: ", err)
244244
}
@@ -335,7 +335,7 @@ func giveSearchSelection(b *dbot.Bot, e *events.ApplicationCommandInteractionCre
335335
index, _ := strconv.Atoi(value)
336336
playTracks = append(playTracks, tracks[index])
337337
}
338-
playAndQueue(b, e.BaseInteraction, playTracks...)
338+
playAndQueue(b, e, playTracks...)
339339
return
340340
},
341341
func() {

dbot/commands/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func stopHandler(b *dbot.Bot) handler.CommandHandler {
3636
}
3737
return err
3838
}
39-
if err := b.Client.Disconnect(context.TODO(), *e.GuildID()); err != nil {
39+
if err := b.Client.UpdateVoiceState(context.TODO(), *e.GuildID(), nil, false, false); err != nil {
4040
b.Logger.Error("Failed to disconnect dbot: ", err)
4141
err = e.CreateMessage(discord.MessageCreate{
4242
Content: "Failed to disconnect from voice channel. Please try again.",

dbot/listeners/metrics.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"github.com/KittyBot-Org/KittyBotGo/dbot"
55
"github.com/KittyBot-Org/KittyBotGo/dbot/metrics"
66
"github.com/disgoorg/disgo/bot"
7+
"github.com/disgoorg/disgo/discord"
78
"github.com/disgoorg/disgo/events"
89
)
910

@@ -12,7 +13,12 @@ func Metrics(b *dbot.Bot) bot.EventListener {
1213
switch e := event.(type) {
1314
case *events.GuildsReady:
1415
b.Logger.Info("Guilds ready, setting counter")
15-
metrics.GuildCounter.Set(float64(len(e.Client().Caches().Guilds().All())))
16+
17+
var count float64
18+
e.Client().Caches().GuildsForEach(func(guild discord.Guild) {
19+
count++
20+
})
21+
metrics.GuildCounter.Set(count)
1622

1723
case *events.GuildJoin:
1824
metrics.GuildCounter.Inc()

dbot/listeners/music.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"github.com/disgoorg/disgo/bot"
66
"github.com/disgoorg/disgo/discord"
77
"github.com/disgoorg/disgo/events"
8-
"github.com/disgoorg/snowflake/v2"
98
)
109

1110
func Music(b *dbot.Bot) bot.EventListener {
@@ -22,10 +21,13 @@ func Music(b *dbot.Bot) bot.EventListener {
2221
return
2322
}
2423
if e.VoiceState.ChannelID == nil && e.OldVoiceState.ChannelID != nil {
25-
botVoiceState, ok := b.Client.Caches().VoiceStates().Get(e.VoiceState.GuildID, e.Client().ID())
24+
botVoiceState, ok := b.Client.Caches().VoiceState(e.VoiceState.GuildID, e.Client().ID())
2625
if ok && botVoiceState.ChannelID != nil && *botVoiceState.ChannelID == *e.OldVoiceState.ChannelID {
27-
voiceStates := e.Client().Caches().VoiceStates().FindAll(func(groupID snowflake.ID, voiceState discord.VoiceState) bool {
28-
return voiceState.ChannelID != nil && *voiceState.ChannelID == *botVoiceState.ChannelID
26+
var voiceStates []discord.VoiceState
27+
e.Client().Caches().VoiceStatesForEach(e.VoiceState.GuildID, func(voiceState discord.VoiceState) {
28+
if voiceState.ChannelID != nil && *voiceState.ChannelID == *botVoiceState.ChannelID {
29+
voiceStates = append(voiceStates, voiceState)
30+
}
2931
})
3032
if len(voiceStates) == 0 {
3133
go player.PlanDisconnect()

dbot/music_player.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (p *MusicPlayer) PlanDisconnect() {
8484

8585
<-ctx.Done()
8686
if ctx.Err() == context.DeadlineExceeded {
87-
if err := p.Bot.Client.Disconnect(context.TODO(), p.GuildID()); err != nil {
87+
if err := p.Bot.Client.UpdateVoiceState(context.TODO(), p.GuildID(), nil, false, false); err != nil {
8888
p.Bot.Logger.Error("Failed to disconnect from voice channel: ", err)
8989
}
9090
}

go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/KittyBot-Org/KittyBotGo
33
go 1.18
44

55
require (
6-
github.com/disgoorg/disgo v0.14.1-0.20221217000909-728480f0d5fc
6+
github.com/disgoorg/disgo v0.15.2
77
github.com/disgoorg/disgolink/disgolink v1.7.4
88
github.com/disgoorg/disgolink/lavalink v1.7.3
99
github.com/disgoorg/handler v0.3.0
@@ -37,10 +37,11 @@ require (
3737
github.com/prometheus/client_model v0.3.0 // indirect
3838
github.com/prometheus/procfs v0.8.0 // indirect
3939
github.com/sasha-s/go-csync v0.0.0-20210812194225-61421b77c44b // indirect
40-
github.com/stretchr/testify v1.8.1 // indirect
41-
golang.org/x/exp v0.0.0-20221114191408-850992195362 // indirect
42-
golang.org/x/sys v0.2.0 // indirect
43-
golang.org/x/text v0.4.0 // indirect
40+
github.com/stretchr/testify v1.8.2 // indirect
41+
golang.org/x/crypto v0.6.0 // indirect
42+
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 // indirect
43+
golang.org/x/sys v0.5.0 // indirect
44+
golang.org/x/text v0.7.0 // indirect
4445
google.golang.org/protobuf v1.28.1 // indirect
4546
gopkg.in/yaml.v3 v3.0.1 // indirect
4647
)

go.sum

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do
5959
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
6060
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
6161
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
62-
github.com/disgoorg/disgo v0.14.1-0.20221217000909-728480f0d5fc h1:h+Hmx0gCVltfaYMibybuobJ1nW/lEnDQy/dLnJOhmx8=
63-
github.com/disgoorg/disgo v0.14.1-0.20221217000909-728480f0d5fc/go.mod h1:YiVpXSmyXLRalYQHTHUFWEQvolCNzw0zh6nfug07b/M=
62+
github.com/disgoorg/disgo v0.15.2 h1:cmdMCHBL17GgkYOJl6d2Btc3MbQiIdzwF6D8lwdJ7L8=
63+
github.com/disgoorg/disgo v0.15.2/go.mod h1:hUkznOmm+f+owh/MuOBX0sDviQV5cL0FqcWbpIyV1Y0=
6464
github.com/disgoorg/disgolink/disgolink v1.7.4 h1:JqiB9fOMxEZHktfHc0LZVOCiNLVmkmtlIic8qDTd5W0=
6565
github.com/disgoorg/disgolink/disgolink v1.7.4/go.mod h1:qbYYCPJvmoBSxDnk+UznKRYa86QMsIZKQxfv9joBVr4=
6666
github.com/disgoorg/disgolink/lavalink v1.7.3 h1:i3wThR0CWWvabhR/HSYM8b6Ln7Ex3ZgX6Hs4VZ+ZSV0=
@@ -315,8 +315,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
315315
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
316316
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
317317
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
318-
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
319-
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
318+
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
319+
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
320320
github.com/volatiletech/inflect v0.0.1/go.mod h1:IBti31tG6phkHitLlr5j7shC5SOo//x0AjDzaJU1PLA=
321321
github.com/volatiletech/null/v8 v8.1.2/go.mod h1:98DbwNoKEpRrYtGjWFctievIfm4n4MxG0A6EBUcoS5g=
322322
github.com/volatiletech/randomize v0.0.1/go.mod h1:GN3U0QYqfZ9FOJ67bzax1cqZ5q2xuj2mXrXBjWaRTlY=
@@ -352,6 +352,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
352352
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
353353
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
354354
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
355+
golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
356+
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
355357
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
356358
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
357359
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -362,8 +364,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0
362364
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
363365
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
364366
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
365-
golang.org/x/exp v0.0.0-20221114191408-850992195362 h1:NoHlPRbyl1VFI6FjwHtPQCN7wAMXI6cKcqrmXhOOfBQ=
366-
golang.org/x/exp v0.0.0-20221114191408-850992195362/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
367+
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 h1:Jvc7gsqn21cJHCmAWx0LiimpP18LZmUxkT5Mp7EZ1mI=
368+
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
367369
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
368370
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
369371
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
@@ -416,8 +418,8 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R
416418
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
417419
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
418420
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
419-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc=
420421
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
422+
golang.org/x/net v0.6.0 h1:L4ZwwTvKW9gr0ZMS1yrHD9GZhIuVjOBBnaKH+SPQK0Q=
421423
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
422424
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
423425
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -478,8 +480,8 @@ golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBc
478480
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
479481
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
480482
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
481-
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
482-
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
483+
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
484+
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
483485
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
484486
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
485487
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
@@ -491,8 +493,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
491493
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
492494
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
493495
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
494-
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
495-
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
496+
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
497+
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
496498
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
497499
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
498500
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

0 commit comments

Comments
 (0)