Group
This page has methods that include things like making group shouts & ranking users. The page below introduces you to "promises" which is what is used to handle success and errors with the API.
Introduction to Promisesshout
This method requires authorization.
This method allows you to shout in a group (if you have permissions).
Sample code: (sent from my own group)
Arguments:
integer
groupId
string
message
Returns: <array>
rank
This method requires authorization.
This method allows you to rank a specified user in a group to a specified rank (it has to exist and they cannot already be that rank or it will error)
Sample code:
Arguments:
integer (userId) or object (player)
player
integer
groupId
integer
group rank
Returns:
<array> (none of the information in this is valid, it's just a blank array)
getAuditLogs
This method requires authorization.
This method gets group audit logs in a page format. More about pages below if you haven't used them:
Introduction to PagesSample code:
Arguments:
integer
groupId
Returns:
<page object>
getGroupWall
This method does not natively require authentication, but some groups have their wall hidden so I'm going to enforce it.
This method provides you with the group's wall and posts. It also uses a page format. More about pages below if you haven't used them:
Introduction to PagesSample code:
Arguments:
integer
groupId
Returns:
<page object>
exile
This method requires authorization.
This method exiles (kicks out) the specified user from a group.
Sample code:
Arguments:
integer / player object
userId
integer
groupId
Returns: {}
updateDescription
This method requires authorization and ownership of the specified group.
This method updates the specified group's description. It requires the authorized account to be the group's owner.
Sample code:
Arguments:
integer
groupId
string
description
Returns: <array>
deleteWallPost
This method requires authentication
Sample code:
Arguments:
integer
groupId
integer / array
wall post
Returns: {}
deleteWallPostsByUser
This method requires authentication.
This method deletes all of the posts on the wall by a specified user.
Sample code:
Arguments:
integer
groupId
integer / player object
userId
Returns: {}
getJoinRequests
This method requires authentication.
This method provides you with the group's join requests. It also uses a page format. More about pages below if you haven't used them:
Introduction to PagesSample code:
Arguments:
integer
groupId
Returns <page object>
acceptJoinRequests
This method requires authentication.
This method allows you to bulk accept up to hundreds of join requests at the same time. You can also just accept a single request.
Sample code:
After the group ID, you can have however many user IDs you want, the example I provided only has one.
Arguments:
integer
groupId
integer (unlimited amount of times)
userId
Returns: {}
declineJoinRequests
This method requires authentication.
This method allows you to bulk decline up to hundreds of join requests at the same time. You can also just decline a single request.
Sample code:
After the group ID, you can have however many user IDs you want, the example I provided only has one.
Arguments:
integer
groupId
integer (unlimited amount of times)
userId
Returns: {}
getGroupInformation
This method does not require authentication.
This method provides group information for the specified ID such as; if public joining is allowed, shout info, description, name, owner, etc.
Sample code:
Arguments:
integer
groupId
Returns: <array>
getUsers
This method does not require authentication.
This method provides all the users in a group (in 100 increments as pages), it also uses pages to navigate the web API. If you don't know how to use them, here's information on them:
Introduction to PagesSample code:
Arguments:
integer
groupId
Returns: <pages>
createRank
This method requires authentication. It also costs 25 robux (if there is any)
This method creates a group rank in the specified group, be warned that it costs robux still. You also require ownership of said group with the cookie.
Sample code:
Arguments:
integer
groupId
array (name <string>, description <string>, rank <integer>, useGroupFunds <boolean>)
description
Returns: array (description <string>, id <integer>, name <string>, rank <integer>
modifyRankPermissions
This method requires authentication & ownership of the group.
This method modifies the specified rank's permissions and here's a list of permissions. (all of them are booleans)
DeleteFromWall
PostToWall
InviteMembers
PostToStatus
RemoveMembers
ViewStatus
ViewWall
ChangeRank
AdvertiseGroup
ManageRelationships
AddGroupPlaces
ViewAuditLogs
CreateItems
ManageItems
SpendGroupFunds
ManageClan
ManageGroupGames
Sample code: (you can update more than one at a time, I'm just keeping it simple in samples)
Arguments:
integer
groupId
integer
rank
array (permission <boolean>)
permissions to update
Returns: {}
getRoleInformation
This method does not require authentication.
This method gets information for a role like the roleset ID, rank, group, etc. I don't know why you need this but ok.
Sample code:
Arguments:
integer
groupId
integer
rank
Returns: <array> example:
Last updated