diff options
author | Wim <wim@42.be> | 2018-12-07 23:48:00 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-07 23:48:00 +0100 |
commit | f72d5de2d757e193ea51da1fd1c75114d94c2c3f (patch) | |
tree | 58bf79af33b7c15803b35ab505949fc59396158c /bridge/discord/handlers.go | |
parent | 0365c0786a6bf95b7d598d25402d9a1d28ab8036 (diff) | |
download | matterbridge-msglm-f72d5de2d757e193ea51da1fd1c75114d94c2c3f.tar.gz matterbridge-msglm-f72d5de2d757e193ea51da1fd1c75114d94c2c3f.tar.bz2 matterbridge-msglm-f72d5de2d757e193ea51da1fd1c75114d94c2c3f.zip |
Disable some unparam checks (discord)
Diffstat (limited to 'bridge/discord/handlers.go')
-rw-r--r-- | bridge/discord/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index 79c32015..8691a612 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -5,7 +5,7 @@ import ( "github.com/bwmarrin/discordgo" ) -func (b *Bdiscord) messageDelete(s *discordgo.Session, m *discordgo.MessageDelete) { +func (b *Bdiscord) messageDelete(s *discordgo.Session, m *discordgo.MessageDelete) { //nolint:unparam rmsg := config.Message{Account: b.Account, ID: m.ID, Event: config.EventMsgDelete, Text: config.EventMsgDelete} rmsg.Channel = b.getChannelName(m.ChannelID) if b.useChannelID { @@ -16,7 +16,7 @@ func (b *Bdiscord) messageDelete(s *discordgo.Session, m *discordgo.MessageDelet b.Remote <- rmsg } -func (b *Bdiscord) messageUpdate(s *discordgo.Session, m *discordgo.MessageUpdate) { +func (b *Bdiscord) messageUpdate(s *discordgo.Session, m *discordgo.MessageUpdate) { //nolint:unparam if b.GetBool("EditDisable") { return } @@ -28,7 +28,7 @@ func (b *Bdiscord) messageUpdate(s *discordgo.Session, m *discordgo.MessageUpdat } } -func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { +func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { //nolint:unparam var err error // not relay our own messages |