Module

x/discordeno/helpers/channels/mod.ts

Discord API library for Deno
Go to Latest
import * as mod from "https://dotland.deno.dev/x/discordeno@13.0.0-rc45/helpers/channels/mod.ts";

Functions

Adds a user to a thread. Requires the ability to send messages in the thread. Requires the thread is not archived.

Create a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server.

Creates a new public thread from an existing message. Returns a thread channel.

Creates a new Stage instance associated to a Stage channel. Requires the user to be a moderator of the Stage channel.

Delete a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. Bot needs MANAGE_THREADS permissions in the server if deleting thread.

Delete the channel permission overwrites for a user or role in this channel. Requires MANAGE_ROLES permission.

Deletes the Stage instance. Requires the user to be a moderator of the Stage channel.

Update a channel's settings. Requires the MANAGE_CHANNELS permission for the guild.

Edit the channel permission overwrites for a user or role in this channel. Requires MANAGE_ROLES permission.

Follow a News Channel to send messages to a target channel. Requires the MANAGE_WEBHOOKS permission in the target channel. Returns the webhook id.

Returns all active threads in the guild, including public and private threads. Threads are ordered by their id, in descending order.

Get the archived threads for this channel, defaults to public

Fetches a single channel object from the api.

Returns a list of guild channel objects.

Gets the webhooks for this channel. Requires MANAGE_WEBHOOKS

Get pinned messages in this channel.

Gets the stage instance associated with the Stage channel, if it exists.

Returns thread members objects that are members of the thread.

Returns thread members objects that are members of the thread.

Adds the bot to the thread. Cannot join an archived thread.

Removes the bot from a thread. Requires the thread is not archived.

Removes a 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.

Creates a new public thread from an existing message. Returns a thread channel.

Creates a new private thread. Returns a thread channel.

Trigger a typing indicator for the specified channel. Generally bots should NOT implement this route. However, if a bot is responding to a command and expects the computation to take a few seconds, this endpoint may be called to let the user know that the bot is processing their message.

Modify the positions of channels on the guild. Requires MANAGE_CHANNELS permission. Only channels to be modified are required.

Updates the bot's voice state Caveats:

  • channel_id must currently point to a stage channel.
  • Bot must already have joined channel_id.
  • You must have the MUTE_MEMBERS permission. But can always suppress yourself.
  • You must have the REQUEST_TO_SPEAK permission to request to speak. You can always clear your own request to speak.
  • You are able to set request_to_speak_timestamp to any present or future time.
  • When suppressed, the user will have their request_to_speak_timestamp removed.

Updates fields of an existing Stage instance. Requires the user to be a moderator of the Stage channel.

Updates the a user's voice state Caveats:

  • channel_id must currently point to a stage channel.
  • User must already have joined channel_id.
  • You must have the MUTE_MEMBERS permission. But can always suppress yourself.
  • When unsuppressed, non-bot users will have their request_to_speak_timestamp set to the current time. Bot users will not.
  • You must have the REQUEST_TO_SPEAK permission to request to speak. You can always clear your own request to speak.
  • You are able to set request_to_speak_timestamp to any present or future time.
  • When suppressed, the user will have their request_to_speak_timestamp removed.