BadRequest When i create thread

Hi,
I'm trying to create a thread with discord extension but I got this error

Discord Errors: {
  "name": {
    "_errors": [
      {
        "code": "BASE_TYPE_REQUIRED",
        "message": "This field is required"
      }
    ]
  }
}
Request Body:
{
  "id": "TEST SERVER 1/9",
  "auto_archive_duration": 10080,
  "type": 11,
  "invitable": true
}

My code

ThreadCreate threadCreate = new ThreadCreate
                {
                    AutoArchiveDuration = 10080,
                    Type = ChannelType.GuildPublicThread,
                    Name = covalence.Server.Name,
                    Invitable = true
                };
                
                GetChannel(_client, (Snowflake)chanid, chan =>
                {
                    chan.CreateMessage(_client, create);
                    chan.StartThreadWithoutMessage(_client, threadCreate, thread =>
                    {
                        thread.CreateMessage(_client, embeds);
                    });
                });

Hey, thanks for the report. Looks like it's a bug with the extension. The JsonProperty for the Name is set to "id" when it should be "name". You can fix it by inheriting from the ThreadCreate class and making a new field with the same name. I'll try to get an update out within the next day that has the fix in it if you don't want to go that route.

Okay,
Thank you.

Merged post

Can you add function to remove thread if possible?
Thanks.

Merged post

I can delete a thread with DeleteChannel my bad.

Merged post

And why ListActiveThreads is obsolete?

ListActiveThreads is obsolete because Discord is deprecating that route. In the next major Discord Extension release it will be upgraded to API v10 in which this route is no longer allowed. Discord replaced the route with DiscordGuild.ListActiveGuildThreads.

Hi,
Why is visual studio still showing list<ThreadList> in DiscordGuild.ListActiveThreads after the update? 
zwVSWzi9Dgaf6E6.png

eXgtQJb9Wz7OAaa.jpg kaysharp

Hi,
Why is visual studio still showing list<ThreadList> in DiscordGuild.ListActiveThreads after the update? 
zwVSWzi9Dgaf6E6.png

Did you update your DLL reference? I checked and the change is in there.

yes.
maybe something is wrong with my visual studio.