Skip to content

Commit

Permalink
fix(example): fix example import, dont allow to set conversationId
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleDerGrasshalmi committed Jul 25, 2024
1 parent f549ca1 commit c78a0b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples/simple.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
const { Client } = require('../../');
const { Client } = require('fnbr');

const client = new Client();

Expand Down
5 changes: 3 additions & 2 deletions src/structures/party/PartyChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class PartyChat extends Base {
/**
* the party chats conversation id
*/
public conversationId: string;
public get conversationId() {
return `p-${this.party.id}`;
}

/**
* The client's chat room nickname
Expand Down Expand Up @@ -62,7 +64,6 @@ class PartyChat extends Base {
this.isConnected = true;

this.party = party;
this.conversationId = `p-${party.id}`;
this.bannedAccountIds = new Set<string>();
}

Expand Down

0 comments on commit c78a0b3

Please sign in to comment.