DiscordPHP-MTG Documentation

Modules

Table of Contents

Interfaces

Module
A self-contained bot feature, as in Tutelar: it declares its own application commands ({@see commands()}, which the client registers or updates), listens for them, and routes clicks on the components of the messages it sends, from {@see boot()}.

Classes

About
`/about` (where the data comes from, how fresh it is, how the bot is doing), `/invite` (add the bot to a server or to your account) and `/ping`.
Boosters
Opening booster packs: `/booster <set> [type]`, from MTGJSON's booster configurations — the pack layouts, sheets and odds of the real product.
Cards
Card lookups: `/card show|search|random|prices`, and the original `/card_search`.
Decks
Preconstructed decks: `/deck show` and `/deck search`, over MTGJSON's deck list and deck files.
Help
`/help` — a guide to every command, as one Components V2 message, only to the person who asked. The guide is {@see SECTIONS}, so it is tested and kept beside the commands it describes.
Lookup
Cards named in chat.
Sets
Sets: `/set show` and `/set search`.

Traits

InteractionTrait
What every module does with interactions: build its commands for every place the bot can be used, read option values, answer autocomplete, and reply after deferring — so a search that waits on the card build (or fails) still answers.
On this page

Search results