Skip to content

Commit 517c73e

Browse files
solves Gh 72 - Welcome bot will not let me add a message to private channels (#79)
Co-authored-by: maisnamrajusingh <[email protected]>
1 parent e59c942 commit 517c73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (p *Plugin) executeCommandSetWelcome(args *model.CommandArgs) {
131131
return
132132
}
133133

134-
if channelInfo.Type == model.CHANNEL_PRIVATE {
134+
if channelInfo.Type == model.CHANNEL_DIRECT {
135135
p.postCommandResponse(args, "welcome messages are not supported for direct channels")
136136
return
137137
}

0 commit comments

Comments
 (0)