diff options
| author | Austin Hellyer <[email protected]> | 2016-11-14 22:01:23 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-14 22:01:23 -0800 |
| commit | 0102f4d5338741797e7d3745b516e9bb781f8e38 (patch) | |
| tree | 763089e5650463256b12d1892f884881a7f27ac0 /examples/06_command_framework/src | |
| parent | Add missing permission shorthands (diff) | |
| download | serenity-0102f4d5338741797e7d3745b516e9bb781f8e38.tar.xz serenity-0102f4d5338741797e7d3745b516e9bb781f8e38.zip | |
Allow current user to nickname themselves
Add support for the `PATCH /guilds/:guild_id/members/@me/nick` endpoint,
which allows the current user to edit their own nickname.
A user can only nickname themselves if they have the `Change Nickname`
permission.
This adds 4 methods:
- `serenity::client::http::edit_nickname`;
- `serenity::client::Context::edit_nickname`;
- `serenity::model::Guild::edit_nickname`;
- `serenity::model::LiveGuild::edit_nickname`.
`LiveGuild`'s implementation checks for whether the current user has
permission to change their own nickname.
Diffstat (limited to 'examples/06_command_framework/src')
0 files changed, 0 insertions, 0 deletions