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

Added a way to move roles #139

Merged
merged 4 commits into from
Oct 29, 2017
Merged

Added a way to move roles #139

merged 4 commits into from
Oct 29, 2017

Conversation

RaidAndFade
Copy link
Contributor

Roles can now be moved, I am unsure if the second commit will break anything but I skimmed through every usage of _req and APIRequest and it doesn't seem like arrays are ever sent as data again so i went ahead and added arrays as JSON.

RaidAndFade added 4 commits February 3, 2017 05:12
added the moveRoles function, which takes a roleId and a relative position. The relative position is an integer that represents how many roles you want to move up or down.
Hopefully this will not break anything but it is required for the previous commit. Arrays are also seen as JSON for web requests, and content type should also be "application/json"
Changing the type(data) calls to typeof(data) from the last commit, as requested by the repo owner.
typeof Array == 'object, so just removed the check for if it's an array or not.
@tkatlavendier
Copy link

Can we also add a way to implement a way to battle other trainers? If that is already a thing then can someone tell me how to do it?

@izy521 izy521 merged commit 13e7bf6 into izy521:master Oct 29, 2017
Woor pushed a commit to Woor/discord.io that referenced this pull request Oct 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants