Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

src: make piece serializer better and add aliases #541

Merged
merged 3 commits into from
Dec 11, 2018

Conversation

UnseenFaith
Copy link
Contributor

@UnseenFaith UnseenFaith commented Dec 11, 2018

Description of the PR

Adds some more functionality to the piece serializer

  • Now has aliases for all pieces in your bot, via pieceStores
  • You can now use 'piece' as a type and store all pieces inside of a schema entry.

Example:

const { Client } = require('klasa');
Client.defaultGuildSchema.add('disabledPieces', 'piece', { array: true });

Would store an array of every single available piece in your bot.

Semver Classification

  • This PR only includes documentation or non-code changes.
  • This PR fixes a bug and does not change the (intended) framework interface.
  • This PR adds methods or properties to the framework interface.
  • This PR removes or renames methods or properties in the framework interface.

src/languages/en-US.js Outdated Show resolved Hide resolved
src/serializers/piece.js Outdated Show resolved Hide resolved
UnseenFaith and others added 2 commits December 11, 2018 17:35
Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
@kyranet kyranet added SEM: Patch PRs that contain bugfixes and should be released in the next patch version. Meta: BugFix PRs that fix bugs or issues. Mod: SettingsGateway Issues and PRs related to SettingsGateway. labels Dec 11, 2018
@UnseenFaith UnseenFaith merged commit b071416 into dirigeants:settings Dec 11, 2018
kyranet pushed a commit that referenced this pull request Feb 11, 2019
* src: make piece serializer better and add aliases

* src: fix build

* Update src/languages/en-US.js

Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
kyranet pushed a commit that referenced this pull request Feb 23, 2019
* src: make piece serializer better and add aliases

* src: fix build

* Update src/languages/en-US.js

Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
kyranet pushed a commit that referenced this pull request Feb 24, 2019
* src: make piece serializer better and add aliases

* src: fix build

* Update src/languages/en-US.js

Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
kyranet pushed a commit that referenced this pull request Mar 8, 2019
* src: make piece serializer better and add aliases

* src: fix build

* Update src/languages/en-US.js

Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
kyranet pushed a commit that referenced this pull request Apr 17, 2019
* src: make piece serializer better and add aliases

* src: fix build

* Update src/languages/en-US.js

Co-Authored-By: UnseenFaith <tba28012@hotmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Meta: BugFix PRs that fix bugs or issues. Mod: SettingsGateway Issues and PRs related to SettingsGateway. SEM: Patch PRs that contain bugfixes and should be released in the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants