createThread method
Create a thread in a channel.
Implementation
Future<Thread> createThread(Snowflake id, ThreadBuilder builder) async {
final route = HttpRoute()
..channels(id: id.toString())
..threads();
final request = BasicRequest(route, method: 'POST', body: jsonEncode(builder.build()));
final response = await client.httpHandler.executeSafe(request);
final thread = parse(response.jsonBody as Map<String, Object?>) as Thread;
client.updateCacheWith(thread);
return thread;
}