Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChannelManager

Manages API methods for Channels

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

client: Client

The Client that instantiated this Manager

Accessors

  • A manager of the channels belonging to this client

    Returns LimitedCollection<string, Channel>

Methods

  • Sends a message to this channel

    example
    const { EmbedBuilder } = require('helly');
    const embed = new EmbedBuilder().setTitle('Pong!')
    guild.channels.send('12345678901234567', { embeds: [embed] })
    example
    const { EmbedBuilder } = require('helly');
    const embed = new EmbedBuilder().setTitle('Pong!')
    guild.channels.send'12345678901234567', ({ content: 'Ping?', embeds: [embed] })
    example
    guild.channels.send('12345678901234567', 'Hello world!')
    

    Parameters

    • channelId: string

      The Id of the target channel

    • content: MessageOptions

      The content of the message

    Returns Promise<Message>

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:15 AM