@@ -127,17 +127,18 @@ public void GetGuildChannels(DiscordClient client, Action<List<Channel>> callbac
127
127
client . REST . DoRequest ( $ "/guilds/{ id } /channels", RequestMethod . GET , null , callback ) ;
128
128
}
129
129
130
- public void CreateGuildChannel ( DiscordClient client , Channel channel , Action < Channel > callback = null ) => CreateGuildChannel ( client , channel . name , channel . type , channel . bitrate , channel . user_limit , channel . permission_overwrites , callback ) ;
130
+ public void CreateGuildChannel ( DiscordClient client , Channel channel , Action < Channel > callback = null ) => CreateGuildChannel ( client , channel . name , channel . type , channel . bitrate , channel . user_limit , channel . permission_overwrites , channel . parent_id , callback ) ;
131
131
132
- public void CreateGuildChannel ( DiscordClient client , string name , ChannelType ? type , int ? bitrate , int ? userLimit , List < Overwrite > permissionOverwrites , Action < Channel > callback = null )
132
+ public void CreateGuildChannel ( DiscordClient client , string name , ChannelType ? type , int ? bitrate , int ? userLimit , List < Overwrite > permissionOverwrites , string parent_id , Action < Channel > callback = null )
133
133
{
134
134
var jsonObj = new Dictionary < string , object > ( )
135
135
{
136
136
{ "name" , name } ,
137
137
{ "type" , type } ,
138
138
{ "bitrate" , bitrate } ,
139
139
{ "user_limit" , userLimit } ,
140
- { "permission_overwrites" , permissionOverwrites }
140
+ { "permission_overwrites" , permissionOverwrites } ,
141
+ { "parent_id" , parent_id }
141
142
} ;
142
143
143
144
client . REST . DoRequest ( $ "/guilds/{ id } /channels", RequestMethod . POST , jsonObj , callback ) ;
0 commit comments