You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
This service should handle all the logic for the cd command. cd stands for Change Directory.
Miunie represents the server space as a tree similar to your operating system.
Here is the structure we decided to use:
This cursor is a List of ulongs representing the current position in our tree structure.
The ROOT's ID should be 0.
The Data's ID should be 1.
etc.
These IDs should be constant and should never change.
You are free to pick different constants based on the implementation.
When referencing Channels, Users, or Servers, the ID should be the Discord ID.
βΉοΈ If the user seems to be in an invalid position, they should be redirected back to root (by emptying the NavCursor list).
Ideally, this service would have Unit tests, if you are able to implement this feature, but can't for some reason add unit tests, feel free to PR your changes. Others will help you with the unit tests, especially if this is your first time contributing. π π
The text was updated successfully, but these errors were encountered:
This service should handle all the logic for the
cd
command.cd
stands for Change Directory.Miunie represents the server space as a tree similar to your operating system.
Here is the structure we decided to use:
βΉοΈ This structure will be extended based on implementation details and/or new features.
The
cd
service should only allow a user to navigate into directories (shown asπ
).βΉοΈ Implementing this service will create a need for the
ListDirectoryService
to be reworked in order to display other directory contents.(This doesn't have to be done by the implementer of the
cd
service, just please create an issue for it)The
cd
service manipulates the MiunieUser's cursor.This cursor is a
List
ofulong
s representing the current position in our tree structure.The
ROOT
's ID should be0
.The
Data
's ID should be1
.etc.
These IDs should be constant and should never change.
You are free to pick different constants based on the implementation.
When referencing Channels, Users, or Servers, the ID should be the Discord ID.
βΉοΈ If the user seems to be in an invalid position, they should be redirected back to root (by emptying the
NavCursor
list).Ideally, this service would have Unit tests, if you are able to implement this feature, but can't for some reason add unit tests, feel free to PR your changes. Others will help you with the unit tests, especially if this is your first time contributing. π π
The text was updated successfully, but these errors were encountered: