-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added and improved documentation (sort of finished) #111
base: docs
Are you sure you want to change the base?
Conversation
Added some new documentation for functions and improved some existing documentation.
Added some new documentation for functions and improved some existing documentation.
Finished most of the function documentation.
Some new examples, some improved examples; changed myClientClass to MyClientClass
source/documentation.html.md
Outdated
public: | ||
using SleepyDiscord::DiscordClient::DiscordClient; | ||
|
||
void onMessage(SleepyDiscord::Message message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use override specifier
source/documentation.html.md
Outdated
|
||
### sendMessage | ||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
source/documentation.html.md
Outdated
|
||
void onMessage(SleepyDiscord::Message message) { | ||
if (message.content == "rules") | ||
uploadFile(message.channelID, "res/rules.txt", "These are the rules"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one line starts with 2 tabs and 2 spaces. The line above uses 4 spaces. same goes for the main function
source/documentation.html.md
Outdated
The Message you just sent as a Message object | ||
|
||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
source/documentation.html.md
Outdated
Returns ``true`` on success | ||
|
||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 error
source/documentation.html.md
Outdated
Returns ``true`` on success | ||
|
||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 error
source/documentation.html.md
Outdated
Returns ``true`` on success | ||
|
||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 error
source/documentation.html.md
Outdated
Returns an array of ``Role`` objects | ||
|
||
#### Other Details | ||
[Declared in `client.h`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/client.h) and [defined in `endpoints.cpp`](https://github.com/NoNamer64/sleepy-discord/blob/master/include/sleepy_discord/endpoints.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404 error, I think you get the point, so I'm not going to keep going without continuing to point this out
source/documentation.html.md
Outdated
bool unbanMember(Snowflake<Server> serverID, Snowflake<User> userID); | ||
``` | ||
|
||
Bans a member from a server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be unbans a member
|
||
### editChannelPermissions | ||
```cpp | ||
bool editChannelPermissions(Snowflake<Channel> channelID, std::string ID, int allow, int deny, std::string type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to give an example for this one
Added some new documentation for functions and improved some existing documentation.