DiscordPHP-MTG Documentation

Helpers

Table of Contents

Classes

Collection
Collection of items. Inspired by Laravel Collections. A local copy of DiscordPHP's `Collection` so MTG code has an `MTG\Helpers`-namespaced type; behaviour comes entirely from {@see CollectionTrait}.
CommandSignature
The parts of an application command that matter to a user, in one canonical shape — so a command built in code can be compared with the one Discord has registered, and re-registered only when it changed.
Links
Links from a card or set to the sites players use: Scryfall, EDHREC and the stores in its MTGJSON purchase URLs. Pure.
SearchCache
Short-lived state behind a message's components — a search's filters, an opened booster's cards — under an id short enough for a `custom_id`.
Text
Small pure text helpers for rendering Magic data into Discord messages.
On this page

Search results