Integrations›Your own platform
Integration · Your game or app

Link your own game or app

Connect each player's account in your game or app to their Discord membership.

Connect a player from your game
import { CeejayConnect } from '@communitystudios/ceejay/connect'

const connect = new CeejayConnect({ publicKey: 'ceejay_pk_5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f' })

async function connectDiscord(playerId: string): Promise<void> {
  const session = await connect.start({ playerId })
  showWaiting(session.url, session.code, session.qrUrl)

  const result = await connect.waitForResult(null, {
    onConfirm: (member) => askThePlayer(member.displayName),
  })

  if (result.status === 'approved') {
    console.log(`Connected to ${result.member.displayName}`)
  } else {
    console.log(`Not connected: ${result.status}`, result.reason)
  }
}
Features

Your own platform in CEEJAY

From your game

A player presses a button in your game and approves the connection with their Discord account, and your game gets their name, level and coins to show.

Through the API

Link a member to their account on your own platform with one API call from your website or backend.

Quests and profiles

Complete quest tasks for linked members by their player ID, and see each member's account on their profile.

FAQ

Questions, answered

What teams ask us before a call.

They approve the connection once with their Discord account, from a link or a code your game shows.

Ready to build your Discord community?

Book a demo of CEEJAY, or get a free launch plan for your server from our team.