Launching on Discord Activities (COPY)

This article explains the requirements and process for Pley games to launch on Discord as an activity.

👍

Be on Pley; be everywhere.

When your game runs on Pley, you only have to maintain one version of your game to run on multiple platforms.

When you make game updates, it automatically goes live on any site or app that runs your web game, including Discord. This means that once your game is launched on Discord, no additional upkeep is needed.

Estimated time to launch on Discord: 1-2 Days + QA testing

The process to launch your game on Discord is mostly automated and requires minimal work once your game runs on Pley.

  1. Right now, launching your game on Discord requires an additional agreement. Reach out to Pley to begin this process.
  2. Make sure the game client works with the limitations of Discord.
  3. Pley will initiate the Discord setup, which takes up to 48 hours to complete.
  4. Once the setup is complete, the game will be playable as a Pley Discord Activity, which you can showcase on your Discord server!


Limitations of Discord

Launching a Pley game on Discord takes nearly no time, and has no maintenance; if it runs on Pley it runs on Discord. Unfortunately, Discord does come with some limitations. For reference, here are them:

  • Discord does not support ads. On Discord, all rewarded ads will instantly be granted to the Player.
  • Any updates, removals, and additions to products must be manually matched in Discord activity SKUs.
  • Discord communication must go through a proxy system. This obscures some player analytics, such as their country. Additionally, communicating with domains requires the URL mapping setup.
  • Discord allows for a maximum of 50 SKUs/In-game purchases. Pley will enable the top 50 purchased products, or a list which you provide.
  • Storage (such as PlayerPrefs) is not reliable according to Discord. However, that is solved by Pley and will be reliable.
  • OnApplicationQuit is not called when the game is closed.

🚧

Warning: Discord Product Limitation

Discord has a maximum of 50 products / SKUs. There is currently no workaround.

Pley recommends launching your game with the top 50 products.


How does the game know where it is running?

From the Pley C# SDK, you can call Pley.GetPlayableLocation();, which returns an enum of where the game is running. This allows for games to have custom logic depending on what distribution channel they are using (such as calling of interstitial ads specifically on Crazy Games, or attributing the purchase channel in business analytics).

This requires Pley SDK 5.7.0 or later.


Account Linking

If players use Discord SSO to log in through Pley (or link their Discord account on the Gamesite account settings) they will automatically be prompted to keep their game progress. No implementation is required.