A community
const url = 'https://api.gampeon.com/v1/communities/1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.gampeon.com/v1/communities/1Without membership only a preview of open communities. Members also get me (their permissions in the community, roles, timeout), the channels they can see with their permissions and unread state, and all roles. permissions are bitmasks, see BITMASK in the role schema.
Not available with access tokens.
Authorizations
Section titled “Authorizations”- None
- session
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Community ID
Responses
Section titled “Responses”Community
object
object
open: anyone who meets the minimum age can join. invite: only with an invite link
13 or 16. Communities for 18+ come only with real age verification
Players online right now on servers of the project (or of all projects of the studio)
Unix time in milliseconds
Online servers, most players first (up to 10)
object
object
object
Bitmask of permissions, see the table in the Communities section
object
Seconds between two messages of the same person. 0 is off
Your effective permissions in this channel (see permissions on the community)
Unread messages that mention you
Only voice channels: most people at once, 0 is no limit of the community
Only with manageChannels
object
Bits allowed in this channel
Bits denied in this channel
object
Higher is more powerful. everyone is always 0
Bitmask of permissions, see the table in the Communities section
Shown as its own group in the member list
The default role every member has
Example
{ "owner": { "type": "studio" }, "joinMode": "open", "channels": [ { "kind": "category" } ]}Error codes: token_not_allowed
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}