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
|`getTargetPermissionsIn` memberID channelID | Returns target’s permissions in the given channel. |
847
-
|`editNickname` "newNick" | Edits triggering user's nickname, argument has to be of type _string_. YAGPDB's highest role has to be above the highest role of the member and bot can't edit owner's nickname. |
848
-
|`hasPermissions` arg | Returns true/false on whether triggering user has the permission bit _int64_ that is also set in .Permissions*.*|
849
-
|`getMember` mention/userID | Function returns [Member object](/docs/reference/templates/syntax-and-data#member) having above methods. `{{(getMember .User.ID).JoinedAt}}` <br>is the same as `{{.Member.JoinedAt}}`|
850
-
|`onlineCount`| Returns the count of online users/members on current server. |
851
-
|`targetHasPermissions` memberID arg | Returns true/false on whether targeted member has the permission bit _int64_. |
852
-
853
-
Permissions are covered on
854
-
[Discord permissions documentation](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags). For example to get
855
-
permission bit for "use application commands" `{{bitwiseLeftShift 1 32}}` would return _int64_`4294967296`.
844
+
### editNickname
845
+
846
+
```yag
847
+
{{ editNickname "newNick" }}
848
+
```
849
+
850
+
Edits the nickname of the member who triggered the command. The bot must have the `MANAGE_NICKNAMES` permission and be
851
+
higher in the role hierarchy than the member. The bot cannot change the nickname of the server owner.
852
+
853
+
### getMember
854
+
855
+
```yag
856
+
{{ $member := getMember <mention|userID> }}
857
+
```
858
+
859
+
Returns the [member object](/docs/reference/templates/syntax-and-data#member) for the given mention or user ID.
0 commit comments