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 Promiseschevron-right

shout

circle-exclamation

This method allows you to shout in a group (if you have permissions).

Sample code: (sent from my own group)

client.group:shout(12551284,"hello world"):andThen(function(response)
    print(response)
end):catch(warn)

Arguments:

Type
Name

integer

groupId

string

message

Returns: <array>

{
    ["body"] = "hello world (sent from an API:tm:)",
    ["created"] = "2021-10-10T17:27:41.233Z",
    ["poster"] = {
        ["buildersClubMembershipType"] = "None",
        ["displayName"] = "imAnExampleDeveloper",
        ["userId"] = 2969571965,
        ["username"] = "imAnExampleDeveloper"
    },
    ["updated"] = "2021-10-11T21:31:25.8120424Z"
}

rank

circle-exclamation

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:

Type
Name

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

circle-exclamation

This method gets group audit logs in a page format. More about pages below if you haven't used them:

Introduction to Pageschevron-right

Sample code:

Arguments:

Type
Name

integer

groupId

Returns:

<page object>

getGroupWall

circle-exclamation

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 Pageschevron-right

Sample code:

Arguments:

Type
Name

integer

groupId

Returns:

<page object>

exile

circle-exclamation

This method exiles (kicks out) the specified user from a group.

Sample code:

Arguments:

Type
Name

integer / player object

userId

integer

groupId

Returns: {}

updateDescription

circle-exclamation

This method updates the specified group's description. It requires the authorized account to be the group's owner.

Sample code:

Arguments:

Type
Name

integer

groupId

string

description

Returns: <array>

deleteWallPost

circle-exclamation

Sample code:

Arguments:

Type
Name

integer

groupId

integer / array

wall post

Returns: {}

deleteWallPostsByUser

circle-exclamation

This method deletes all of the posts on the wall by a specified user.

Sample code:

Arguments:

Type
Name

integer

groupId

integer / player object

userId

Returns: {}

getJoinRequests

circle-exclamation

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 Pageschevron-right

Sample code:

Arguments:

Type
Name

integer

groupId

Returns <page object>

acceptJoinRequests

circle-exclamation

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:

Type
Name

integer

groupId

integer (unlimited amount of times)

userId

Returns: {}

declineJoinRequests

circle-exclamation

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:

Type
Name

integer

groupId

integer (unlimited amount of times)

userId

Returns: {}

getGroupInformation

circle-check

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:

Type
Name

integer

groupId

Returns: <array>

getUsers

circle-check

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 Pageschevron-right

Sample code:

Arguments:

Type
Name

integer

groupId

Returns: <pages>

createRank

circle-exclamation

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:

Type
Name

integer

groupId

array (name <string>, description <string>, rank <integer>, useGroupFunds <boolean>)

description

Returns: array (description <string>, id <integer>, name <string>, rank <integer>

modifyRankPermissions

circle-exclamation

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:

Type
Name

integer

groupId

integer

rank

array (permission <boolean>)

permissions to update

Returns: {}

getRoleInformation

circle-check

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:

Type
Name

integer

groupId

integer

rank

Returns: <array> example:

Last updated