Update Role.md

- Convert id to String
- Convert permissions to String
This commit is contained in:
Mahan 2024-04-27 18:12:50 +00:00 committed by GitHub
parent 07f305fe82
commit 103fd0175d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -16,10 +16,10 @@ aliases: [
```json
{
"id": 3,
"id": "3",
"name": "Owner",
"color": "#ff3838",
"permissions": 1048575,
"permissions": "1048575",
"highlighted": true
}
```
@ -29,7 +29,7 @@ aliases: [
### `id` {#id}
**Description:** The ID of the Role in the database.\
**Type:** Integer\
**Type:** String\
**Version history:**\
4.0.0 - added
@ -50,7 +50,7 @@ aliases: [
### `permissions` {#permissions}
**Description:** A bitmask that represents the sum of all permissions granted to the role.\
**Type:** Integer\
**Type:** String\
**Version history:**\
4.0.0 - added
@ -127,4 +127,4 @@ To determine the permissions available to a certain role, convert the `permissio
## See also
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/role_serializer.rb" caption="app/serializers/rest/role_serializer.rb" >}}