DiscordPHP-MTG Documentation

Deprecated

Table of Contents

src/MTG/Parts/Card.php
src/MTG/Repository/AbstractRepositoryTrait.php

Card.php

Line Element Reason
485 Card::toContainer()

Use CardMessageBuilder::card(), whose buttons survive restarts.

511 Card::normalLayoutContainer()

Use CardMessageBuilder::card(), whose buttons survive restarts.

572 Card::getJsonButton()

Use CardMessageBuilder::card() (its JSON button), whose buttons survive restarts.

598 Card::getViewImageButton()

Use CardMessageBuilder::card() (its Image button), whose buttons survive restarts.

625 Card::getSetButton()

Use CardMessageBuilder::card() (its Set button), whose buttons survive restarts.

664 Card::getForeignNamesButton()

Use CardMessageBuilder::foreignNames(), whose buttons survive restarts.

698 Card::getLegalitiesButton()

Use CardMessageBuilder::legalities(), whose buttons survive restarts.

729 Card::getRulingsButton()

Use CardMessageBuilder::rulings(), whose buttons survive restarts.

AbstractRepositoryTrait.php

Line Element Reason
187 AbstractRepositoryTrait::save()

Use Part->save($reason) to ensure permissions are checked.

442 AbstractRepositoryTrait::pull()

Use async $repository->cachePull()

478 AbstractRepositoryTrait::pushItem()

Use async $repository->cache->set() This method is deprecated for userland code but can still be used internally within the library.

546 AbstractRepositoryTrait::has()

Use async $repository->cache->has()

620 AbstractRepositoryTrait::clear()

Use async $repository->cache->clear()

633 AbstractRepositoryTrait::toArray()

Use jsonSerialize

668 AbstractRepositoryTrait::offsetExists()

Use async $repository->cache->has() This method is deprecated for userland code but can still be used internally within the library.

683 AbstractRepositoryTrait::offsetGet()

Use async $repository->cacheGet() or sync $repository->get() This method is deprecated for userland code but can still be used internally within the library.

706 AbstractRepositoryTrait::offsetSet()

Use async $repository->cache->set()

718 AbstractRepositoryTrait::offsetUnset()

Use async $repository->cache->delete()

Search results