File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export default {
165165 ? error
166166 : error ?. data ?. error || error ?. message ;
167167
168- if ( ! errorCode . includes ( "missing_scope" ) ) {
168+ if ( ! errorCode ? .includes ( "missing_scope" ) ) {
169169 return false ;
170170 }
171171
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ export default {
561561 if ( [
562562 "not_in_channel" ,
563563 "channel_not_found" ,
564- ] . some ( ( errorType ) => error . includes ( errorType ) ) && asBot ) {
564+ ] . some ( ( errorType ) => ` ${ error } ` . includes ( errorType ) ) && asBot ) {
565565 const followUp = method . startsWith ( "chat." )
566566 ? "Ensure the bot is a member of the channel, or set the **Send as User** option to true to act on behalf of the authenticated user."
567567 : "Ensure the bot is a member of the channel." ;
You can’t perform that action at this time.
0 commit comments