Product
All product methods respond with a promise.
Fetch product information.
api.fetchProduct("productdot").then((product) => {
console.log(product.name); // productdot
});Create product.
api.createProduct("productdot", "Lorem Ipsum Dolor Sit Amet", "123456", "https://example.com");Delete product.
api.deleteProduct("productdot")Update product's configuration.
api.updateProduct("productdot", {
"name": "productdot",
"description": "Lorem Ipsum Dolor Sit Amet",
"developerProductId": "12456",
"downloadUrl": "https://example.com"
});Give product to Discord user.
api.giveProduct("productdot", "348853688179359746")Revoke product from Discord user.
api.revokeProduct("productdot", "348853688179359746")Last updated
Was this helpful?