Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new thread that is not connected to an existing message. The created thread is always a GUILD_PRIVATE_THREAD
 /// See <a href="https://discord.com/developers/docs/resources/channel#start-thread-without-message">Start Thread without Message</a>
 /// </summary>
 /// <param name="client">Client to use</param>
 /// <param name="create">Data to use when creating the thread</param>
 /// <param name="callback">Callback with the thread once the action is completed</param>
 /// <param name="error">Callback when an error occurs with error information</param>
 public void StartThreadWithoutMessage(DiscordClient client, ThreadCreate create, Action <DiscordChannel> callback = null, Action <RestError> error = null)
 {
     client.Bot.Rest.DoRequest($"/channels/{Id}/threads", RequestMethod.POST, create, callback, error);
 }