Exemplo n.º 1
0
 public void Modify(ThreadProperties changes)
 {
     ModifyAsync(changes).GetAwaiter().GetResult();
 }
Exemplo n.º 2
0
 public static DiscordThread ModifyThread(this DiscordClient client, ulong threadId, ThreadProperties changes)
 => client.ModifyThreadAsync(threadId, changes).GetAwaiter().GetResult();
Exemplo n.º 3
0
 public async Task ModifyAsync(ThreadProperties changes)
 {
     Update(await Client.ModifyThreadAsync(Id, changes));
 }
Exemplo n.º 4
0
 public static async Task <DiscordThread> ModifyThreadAsync(this DiscordClient client, ulong threadId, ThreadProperties changes)
 => (await client.HttpClient.PatchAsync("/channels/" + threadId, changes)).Deserialize <DiscordThread>().SetClient(client);