0.1.5 • Published 2 years ago

discord-play-together v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Discord-play-together

downloadsBadge versionBadge documentationBadge

To Do

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 form the list
	/*optionnal*/ duration: 86400, //in ms 
	/*optionnal*/ neverExpire: false,
	/*optionnal*/ 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
}