DiscordPHP-BridgeBot Documentation

ProvidesActions

A connector that brings commands of its own.

Twitch brings the whole Helix API; Telegram brings sending, polls and moderation. Both arrive in the one catalogue, under the connector's own qualifier, and are then reachable from every chat the bot is in — which is the point of one bot rather than two: !twitch title typed in a Telegram group sets the stream title.

Tags
author

Valithor Obsidion valithor@discordphp.org

Table of Contents

Methods

actions()  : array<int, Action>
Every command this connector defines.

Methods

actions()

Every command this connector defines.

public actions() : array<int, Action>

Each one's qualifier must be the connector's own Connector::name(); ActionRegistry refuses anything else, because a connector claiming another's qualifier is how two packages end up silently shadowing each other's commands.

Return values
array<int, Action>
On this page

Search results