aboutsummaryrefslogtreecommitdiff
path: root/examples/06_command_framework
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-14 22:01:23 -0800
committerAustin Hellyer <[email protected]>2016-11-14 22:01:23 -0800
commit0102f4d5338741797e7d3745b516e9bb781f8e38 (patch)
tree763089e5650463256b12d1892f884881a7f27ac0 /examples/06_command_framework
parentAdd missing permission shorthands (diff)
downloadserenity-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')
0 files changed, 0 insertions, 0 deletions