DiscordPHP-MTG Documentation

Parts

Table of Contents

Classes

Card
Represents a Magic: The Gathering card (one object from the API's `cards` response); {@see CardAttributes} declares the raw API fields and this class adds the collections and Discord render helpers.
ForeignName
Foreign language names for the card, if this card in this set was printed in another language. Not available for all sets.
Legality
One entry from a {@see Card}'s `legalities` array — whether the card is `Legal` / `Banned` / `Restricted` in a given format. Not a standalone endpoint; it only appears inside the card response.
Ruling
One entry from a {@see Card}'s `rulings` array — an official clarification, with the date it was issued. Not a standalone endpoint; it only appears inside the card response.
Set
Represents a Magic: The Gathering set (one object from the API's `sets` response) — its code, name, release date, block and booster configuration.

Traits

CardAttributes
This query will return a maximum of 100 cards.
On this page

Search results