How to use the steam-user.EPurchaseResult function in steam-user

To help you get started, we’ve selected a few steam-user 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 antigravities / Steamcord / index.js View on Github external
steam.redeemKey(v, (r, d, p) => {
						var subs = [];
						if( p != null && typeof p == "object" ){
							Object.keys(p).forEach((v,k) => {
								subs.push(p[v] + " (" + v + ")");
							});
						}
						webhook.send("Key: " + v + " | Result: " + resolveCode(Steam.EResult, r) + " | Purchase information: " + resolveCode(Steam.EPurchaseResult, d) + " | Subs: " + subs.join(", "), { username: "Redeem Key", avatarURL: "https://eet.li/eb8e443.png" } );
					});
				}, k*1000);