Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-133] Added a feature of restricting bot messages to private channels and DM/GMs #337
base: master
Are you sure you want to change the base?
[MM-133] Added a feature of restricting bot messages to private channels and DM/GMs #337
Changes from 2 commits
d3a7688
672f29a
1fb2e67
0c51cfb
fdc98fc
6837578
ecc3cf9
6c05f40
417a123
fe29a06
645f26f
2549a1e
eb5981d
4c013a8
ebc3bca
66fc89c
5ff77f7
ad2e197
df05023
8583cac
5f0a6bf
6eb844d
8304f0a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 508 in server/http.go
server/http.go#L505-L508
Check warning on line 513 in server/http.go
server/http.go#L512-L513
Check warning on line 530 in server/http.go
server/http.go#L530
Check warning on line 551 in server/http.go
server/http.go#L551
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we need the http status code to be returned from here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning
statusCode
for any error that arises so we can return the respective error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right but the only values returned are
http.StatusInternalServerError
andhttp.StatusOK
, which can instead be inferred by the caller if an error happened or notCheck warning on line 962 in server/http.go
server/http.go#L958-L962
Check warning on line 977 in server/http.go
server/http.go#L976-L977
Check warning on line 222 in server/store.go
server/store.go#L221-L222
Check warning on line 228 in server/store.go
server/store.go#L226-L228
Check warning on line 237 in server/store.go
server/store.go#L236-L237
Check warning on line 259 in server/store.go
server/store.go#L256-L259
Check warning on line 261 in server/store.go
server/store.go#L261