Discord-play-together

downloadsBadgeversionBadgedocumentationBadge

To Do

  • [ ] Improve the documentation
    • [x] Add github page with the documentation (at https://ena0.github.io/discord-play-together/)
    • [ ] correct orthography errors
  • [ ] Improve the package
    • [ ] Add some event
    • [ ] Add management features

Table of content

Installation

npm install discord-play-together

activity list

  • youtube / youtubedev
  • poker
  • betrayal
  • fishing
  • chess / chessdev
  • lettertile
  • wordsnack
  • doodlecrew
  • awkword
  • spellcast
  • checkers
  • puttparty
  • sketchheads
  • ocho

Usage

Create a code

createCode(channel_id, {
  activity: "youtube", //choose one from the list
	duration: 86400, //in ms 
	neverExpire: false,
	maxUses: 0
})

that will return you something like that:

{
  code: "https://discord.com/invite/123456",
  expireAt: 1234567891,
  activity: {
    id: 880218394199220334,
    name: "youtube",
    icon: "",
    description: "",
  },
  guild: {...}, //the guild
  channel: {...}, //the channel
  inviter: {...} //the user
}