Access the Steam Clan aka Steam Group system with Heathen's Steam API
Like what your seeing?
Consider supporting us as a GitHub Sponsor and get instant access to all our Unity assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.
These articles are made possible by our GitHub Sponsors ... become a sponsor today!
This leverages features of ISteamFriends, ISteamUser and ISteamUGC to simplify working with Steam "clans" aka "groups" aka "guilds" ... known by a lot of names but these are the "communities" you see in Steam which can have chats, news, etc.
What is a clan?
Also known as a Community Group, Steam lets user's create there own social groups, these could be groups of active players similar to a guild in an MMO or simply an interest group e.g. a collection of Steam users with similar interests. You can search the existing community groups here:
Steam Community :: Search
steam
Search For Community Groups
What can it do?
You can list the clan owner, its officers, open the clan chat in overlay or join the clan's chat in game. The most common use game developers look for and the most complex is to join the clan chat in game.
Returns a list of the members of the given clans chat
Get the number of users in a Steam group chat. This is used for iteration, after calling this then GetChatMemberByIndex can be used to get the Steam ID of each person in the chat.
Large steam groups cannot be iterated by the local user.
Gets the Steam ID of the officer at the given index in a Steam group.
GetOfficers
publicstaticUserData[]GetOfficers(Clan clanId)
Gets the list of officers for the given clan.
GetOfficersCount
publicstaticintGetOfficerCount(Clan clanId)
Gets the number of officers (administrators and moderators) in a specified Steam group. This also includes the owner of the Steam group. This is used for iteration, after calling this then GetClanOfficerByIndex can be used to get the Steam ID of each officer.
GetOwner
publicstaticCSteamIDGetOwner(Clan clanId)
Gets the owner of a Steam Group.
GetTag
publicstaticstringGetTag(Clan clanId)
Gets the unique tag (abbreviation) for the specified Steam group; If the local client knows about it. The Steam group abbreviation is a unique way for people to identify the group and is limited to 12 characters.In some games this will appear next to the name of group members.
Refresh the Steam Group activity data or get the data from groups other than one that the current user is a member.
How To
Create a Clan / Group
This cannot be done from within the Steam API at current you can however direct your player's to the appropriate location in Steam to create there own clans.