discord-play-together

0.1.5 • Public • Published

Discord-play-together

downloadsBadge versionBadge documentationBadge

To Do

  • [ ] Improve the documentation
  • [ ] 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 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
}

Package Sidebar

Install

npm i discord-play-together

Weekly Downloads

2

Version

0.1.5

License

ISC

Unpacked Size

285 kB

Total Files

22

Last publish

Collaborators

  • ena0