How to use the steamid.ChatInstanceFlags function in steamid

To help you get started, we’ve selected a few steamid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DoctorMcKay / node-steam-user / components / chat.js View on Github external
function fromChatID(steamID) {
	steamID = Helpers.steamID(steamID);

	if (steamID.isGroupChat()) {
		steamID.type = SteamID.Type.CLAN;
		steamID.instance &= ~SteamID.ChatInstanceFlags.Clan;
	}

	return steamID;
}

steamid

Exposes a SteamID object class for easy SteamID management

MIT
Latest version published 4 months ago

Package Health Score

69 / 100
Full package analysis