$serverChannels

This function retrieves a list of all channels within the current server (guild).

Usage

$serverChannels[info (optional, default: name); type (optional, default: all); separator (optional, default: ", ")]

Parameters:

  • info: (Optional) Specifies what information about each channel should be returned. Defaults to the channel's name.

    • Possible values:
      • name: Returns the channel's name.
      • id: Returns the channel's ID.
  • type: (Optional) Filters the channels based on their type. Defaults to all (returns all channels).

    • Possible values:
      • all: Returns all channels (text, voice, category, etc.).
      • text: Returns only text channels.
      • voice: Returns only voice channels.
      • category: Returns only category channels.
  • separator: (Optional) The string used to separate the channel information in the returned list. Defaults to ", ".

Example

This example retrieves the names of all text channels in the server, separated by forward slashes.

Member04/23/2025
!!exec $serverChannels[name;text;/]
Custom Command Bot 04/23/2025
channel1/channel2/channel3/channel4

Info

  • The info parameter determines what information you get for each channel.
  • The type parameter lets you filter the channels returned.

Channel Types:

  • all: Returns all channels.
  • text: Returns only text channels.
  • voice: Returns only voice channels.
  • category: Returns only category channels.

Related Functions