Skip to content

Commit

Permalink
🚀 discord-together v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyK888 authored Oct 23, 2021
1 parent d010868 commit 65c92c5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ $ npm install discord.js@latest
- Multiple server
- Discord support
- Lightweight
- 10+ games available

### <u>Documentation ➩ coming soon !</u>
- 12+ games available

<br/>

Expand Down Expand Up @@ -114,6 +112,20 @@ client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'dood
});
```

- SpellCast
```js
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'spellcast').then(async invite => {
return message.channel.send(`${invite.code}`);
});
```

- Awkword
```js
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'awkword').then(async invite => {
return message.channel.send(`${invite.code}`);
});
```

# 📷 Image

![Invite link](https://media.discordapp.net/attachments/835896457454026802/837968506846183474/2021-05-01_10h26_17.png)
Expand All @@ -134,6 +146,8 @@ client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'dood

### **Thanks a lot to [3chospirits](https://github.com/3chospirits) who made the typescript declaration file !**

*I would also like to thank all the amazing members of my server who are helping to make this project happen !*

**This package is under MIT license.**

*Note: This package is not affiliated with Discord Inc. or YouTube Inc.*
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discord-together",
"version": "1.3.0",
"description": "Play games or watch YouTube videos together on Discord! More than 10 games available!",
"version": "1.3.1",
"description": "Play games or watch YouTube videos together on Discord! More than 12 games available!",
"main": "index.js",
"types": "./types/index.d.ts",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions src/DiscordTogether.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ const defaultApplications = {
poker: '755827207812677713',
betrayal: '773336526917861400',
fishing: '814288819477020702',
chess: '832012774040141894', // Note : First package to offer chess, any other package offering it will be clearly inspired by it
chess: '832012774040141894',
chessdev: '832012586023256104', // Note : First package to offer chessDev, any other package offering it will be clearly inspired by it
lettertile: '879863686565621790',
wordsnack: '879863976006127627',
doodlecrew: '878067389634314250',
lettertile: '879863686565621790', // Note : First package to offer lettertile, any other package offering it will be clearly inspired by it
wordsnack: '879863976006127627', // Note : First package to offer wordsnack any other package offering it will be clearly inspired by it
doodlecrew: '878067389634314250', // Note : First package to offer doodlecrew, any other package offering it will be clearly inspired by it
awkword: '879863881349087252', // Note : First package to offer awkword, any other package offering it will be clearly inspired by it
spellcast: '852509694341283871', // Note : First package to offer spellcast, any other package offering it will be clearly inspired by it
};

/**
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ client.discordTogether = new DiscordTogether(client);
client.on('messageCreate', async message => { // 'message' for Discord.js v12
if (message.content === 'start') {
if(message.member.voice.channel) {
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtubedev').then(async invite => {
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'spellcast').then(async invite => { // message.member.voice.channelId for Discord.js v12
return message.channel.send(`${invite.code}`); // Click the blue link !
});
};
Expand Down
6 changes: 5 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ declare class DiscordTogether<T extends {
lettertile: string;
wordsnack: string;
doodlecrew: string;
awkword: string;
spellcast: string;
} & T;
/**
* Create a Youtube Together invite code (note: send the invite using markdown link)
Expand All @@ -48,7 +50,7 @@ declare class DiscordTogether<T extends {
* @example
* client.on('message', async message => {
* if (message.content === 'start') {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'doodlecrew').then(async invite => {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'spellcast').then(async invite => {
* return message.channel.send(`${invite.code}`); // Click the blue link
* });
* };
Expand All @@ -66,6 +68,8 @@ declare class DiscordTogether<T extends {
lettertile: string;
wordsnack: string;
doodlecrew: string;
awkword: string;
spellcast: string;
} & T)): Promise<{
code: string;
}>;
Expand Down

0 comments on commit 65c92c5

Please sign in to comment.