Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#removeUserFromThread

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.removeUserFromThread
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Removes another user from a thread. Requires the MANAGE_THREADS permission or that you are the creator of the thread. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event.

Parameters

channelId: string
userId: string

Returns

Promise<void>