File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ export async function createTextChannel(
3939 category_name ?: string
4040) {
4141 //Determine which arg to use
42- let channel_parent : CategoryChannel | undefined ;
42+ let parent : CategoryChannel | undefined ;
4343 if ( category !== undefined ) {
44- channel_parent = category ;
44+ parent = category ;
4545 } else if ( category_name !== undefined ) {
46- channel_parent = await findCategory ( guild , category_name ) ;
46+ parent = await findCategory ( guild , category_name ) ;
4747 } else {
4848 throw Error (
4949 "Must specify either channel_category or channel_category_name"
@@ -52,8 +52,8 @@ export async function createTextChannel(
5252
5353 return guild . channels . create ( cleanChannelString ( name ) , {
5454 type : "GUILD_TEXT" ,
55- topic : topic ,
56- parent : channel_parent ,
55+ topic,
56+ parent,
5757 } ) ;
5858}
5959
You can’t perform that action at this time.
0 commit comments