DiscordPHP-MTG Documentation

MTG

Table of Contents

Namespaces

Helpers
Http
Parts
Repository

Classes

Client
The DiscordPHP {@see \Discord\Parts\User\Client} extended so the MTG repositories ({@see CardRepository}, {@see SetRepository}) hang off the same client the rest of the bot uses. Held by {@see MTG} as `$client`.
MTG
The MTG client class — a DiscordPHP {@see MessageCommandClient} extended with an async HTTP client for the "Magic: The Gathering Developers" REST API and the card / set repositories that read it.

Traits

HelperTrait
Small presentation helpers shared by {@see MTG} and its command handlers for turning MTG API data into Discord output: a mention-safe {@see MessageBuilder} factory and emoji lookup helpers. Pure formatting — no API or model concerns live here.
On this page

Search results