File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ export default {
9393 const children = Array . from ( cs_category . children . values ( ) ) ;
9494 for ( let index = 0 ; index < children . length ; index ++ ) {
9595 const match = cleaned_courses . find ( ( course ) => {
96- return course == children [ index ] . name ;
96+ return course === children [ index ] . name ;
9797 } ) ;
98- if ( match != undefined ) {
98+ if ( match !== undefined ) {
9999 continue ;
100100 }
101101 console . log ( `Moving: ${ children [ index ] } to: ${ cs_past_category_name } ` ) ;
@@ -165,7 +165,7 @@ export default {
165165 // Ping members who have this role
166166 const found_role = msgInt . guild . roles . cache . find ( ( role ) => {
167167 return (
168- cleanRoleString ( role . name ) ==
168+ cleanRoleString ( role . name ) ===
169169 cleanChannelString ( courses [ index ] . CODE )
170170 ) ;
171171 } ) ;
@@ -198,7 +198,7 @@ export default {
198198 // Ping members who have this role
199199 const found_role = msgInt . guild . roles . cache . find ( ( role ) => {
200200 return (
201- cleanRoleString ( role . name ) ==
201+ cleanRoleString ( role . name ) ===
202202 cleanChannelString ( courses [ index ] . CODE )
203203 ) ;
204204 } ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export function cleanChannelString(s: string): string {
1111
1212export function checkForChannel ( guild : Guild , channel_name : string ) {
1313 return guild . channels . cache . find ( ( channel ) => {
14- return channel . name == channel_name ;
14+ return channel . name === channel_name ;
1515 } ) ;
1616}
1717
You can’t perform that action at this time.
0 commit comments