DiscordPHP-BridgeBot Documentation

Module

A self-contained Discord-side feature that attaches its own listeners once the gateway is ready.

This is the escape hatch from Action, which is a string in and a string out. That covers what a chat command is, and nothing else: a Components v2 panel whose buttons stay live, or a feature driven by a Discord event rather than by somebody typing, needs the whole Discord object — so it is a module instead.

The shape is the same one the rest of the DiscordPHP family uses, so the projects stay legible to each other.

Tags
author

Valithor Obsidion valithor@discordphp.org

Table of Contents

Methods

boot()  : void
Attach listeners, timers, and slash-command handlers. Called once, after ready.
name()  : string
Stable short name, used for logging.

Methods

boot()

Attach listeners, timers, and slash-command handlers. Called once, after ready.

public boot(Bot $bot) : void
Parameters
$bot : Bot

name()

Stable short name, used for logging.

public name() : string
Return values
string
On this page

Search results