Code:
DiscordChannel channel = _guild.Channels[new Ext.Discord.Entities.Snowflake(1267257929405436014)];
var threadCreate = new ThreadCreate()
{
Name = "New thread #1",
AutoArchiveDuration = 1440,
Type = ChannelType.GuildPublicThread
};
channel.StartThreadWithoutMessage(_client, threadCreate, thread =>
{
thread.CreateMessage(_client, new MessageCreate()
{
Content = "Message in thread"
});
});
Forum:
https://imgur.com/a/FM087UV
Got this:
[Discord Extension] [Error]: Discord API has returned error Discord Code: 50035 Discord Error: Invalid Form Body Request: [POST] https://discord.com/api/v9/channels/1267257929405436014/threads (Response Code: BadRequest) Content-Type: application/json
Discord Errors: {
"message": {
"_errors": [
{
"code": "BASE_TYPE_REQUIRED",
"message": "This field is required"
}
]
}
}
Request Body:
{"name":"New thread #1","auto_archive_duration":1440,"type":11}
GuildPrivateThread and GuildPublicThread not working