File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function checkForChannel(guild: Guild, channel_name: string) {
1717
1818export async function findCategory ( guild : Guild , category_name : string ) {
1919 let category = guild . channels . cache . find ( ( category ) => {
20- return category . name == category_name ;
20+ return category . name === category_name ;
2121 } ) ;
2222
2323 if ( category === undefined || category . type !== "GUILD_CATEGORY" ) {
@@ -62,7 +62,7 @@ export async function moveChannel(
6262 if (
6363 channel . parent === null ||
6464 channel . parent === undefined ||
65- channel . parent ?. name != category_name
65+ channel . parent ?. name !== category_name
6666 ) {
6767 const category = await findCategory ( guild , category_name ) ;
6868 channel . setParent ( category ) ;
@@ -81,7 +81,8 @@ export function concatCategoryName(
8181 category_name : string ,
8282 category_number : number
8383) {
84- return category_number == 0
84+ return category_number === 0
8585 ? category_name
8686 : `${ category_name } ${ category_number } ` ;
8787}
88+
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export async function checkForRoles(guild: Guild): Promise<boolean> {
128128 const name = guild . roles . cache . find ( ( r ) => r . name === element . ROLE_NAME ) ;
129129 const id = guild . roles . cache . find ( ( r ) => r . id === element . ROLE_ID ) ;
130130
131- if ( name == undefined && id == undefined ) {
131+ if ( name === undefined && id = == undefined ) {
132132 console . log (
133133 chalk . red . bold (
134134 `Role ${ element . ROLE_NAME } does not exist in ${ guild . name } , Please run the /createRoles command in that server.`
@@ -145,3 +145,4 @@ export async function checkForRoles(guild: Guild): Promise<boolean> {
145145 return true ;
146146 }
147147}
148+
You can’t perform that action at this time.
0 commit comments