Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to implement Discord in my game?

Discussion in 'Scripting' started by Fully12, Nov 6, 2020.

  1. Fully12

    Fully12

    Joined:
    Nov 6, 2020
    Posts:
    6
    Hi all,

    Is there a way to implement these feature in a game?

    1) A link to a discord server. When the player taps the discord icon in a mobile game, I want to redirect the player to a discord server over the Discord app if it's installed on the phone. If not, the link should redirect the player to the web version of Discord.

    2) I'm not sure if this is really possible. Is there a way to implement a Discord server's channel in a game? Let's say, if you have a channel named #general-chat on your Discord server, I want to show the messages of that channel in the game. Is it possible?
     
  2. diego-giacomelli

    diego-giacomelli

    Joined:
    Oct 27, 2012
    Posts:
    26
    Fully12 and Bunny83 like this.
  3. Fully12

    Fully12

    Joined:
    Nov 6, 2020
    Posts:
    6
  4. Fully12

    Fully12

    Joined:
    Nov 6, 2020
    Posts:
    6
  5. lukaodzelashvili

    lukaodzelashvili

    Joined:
    Jul 3, 2020
    Posts:
    3
    there is a code for when clicking and then it goes to server just do this:

    public void DiscordLink()
    {
    Application.OpenLink("LINK HERE")l
    }
     
    rbitard likes this.