From 18eb6081460f3ee4476554499bdfb8320410c93c Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 19 Mar 2021 22:17:19 -0700 Subject: [PATCH] bumped cchat --- go.mod | 2 +- go.sum | 2 ++ internal/discord/session/channel/messenger/nicknamer.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index ca5e8b3..449f932 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.14 require ( github.com/diamondburned/arikawa/v2 v2.0.5 - github.com/diamondburned/cchat v0.6.0 + github.com/diamondburned/cchat v0.6.1 github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49 github.com/dustin/go-humanize v1.0.0 github.com/go-test/deep v1.0.7 diff --git a/go.sum b/go.sum index 71b094f..32c23e6 100644 --- a/go.sum +++ b/go.sum @@ -31,6 +31,8 @@ github.com/diamondburned/cchat v0.5.5 h1:YgI98ID9UQAgHbLFEyHQ2qcAJ5A2HcVZaq+A26n github.com/diamondburned/cchat v0.5.5/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI= github.com/diamondburned/cchat v0.6.0 h1:XVql8slOho9FUxuJm/I7/XWr5l1XgxLc5SvcvI+ybp4= github.com/diamondburned/cchat v0.6.0/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI= +github.com/diamondburned/cchat v0.6.1 h1:BFpY2Nvnut1/X+0dhL8STK80RVmfEJLmf4ppTJX2ADg= +github.com/diamondburned/cchat v0.6.1/go.mod h1:IlMtF+XIvAJh0GL/2yFdf0/34w+Hdy5A1GgvSwAXtQI= github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49 h1:wfj+fvDJLUC+xkRmVA/ZE9nmeSqFy4fbyIi3hBHgn/U= github.com/diamondburned/ningen/v2 v2.0.0-20210106052055-9da2a0102d49/go.mod h1:WRQCUX/dTH4OPEy3JANLA5D6fbumzp5zk03uSUAZppA= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= diff --git a/internal/discord/session/channel/messenger/nicknamer.go b/internal/discord/session/channel/messenger/nicknamer.go index ec54243..9182fdf 100644 --- a/internal/discord/session/channel/messenger/nicknamer.go +++ b/internal/discord/session/channel/messenger/nicknamer.go @@ -23,6 +23,6 @@ func NewUserNicknamer(userID discord.UserID, ch shared.Channel) cchat.Nicknamer return nicknamer{userID, ch} } -func (nn nicknamer) Nickname(ctx context.Context, labeler cchat.LabelContainer) (func(), error) { +func (nn nicknamer) Name(ctx context.Context, labeler cchat.LabelContainer) (func(), error) { return nn.State.Labels.AddMemberLabel(nn.GuildID, nn.userID, labeler), nil }