Skip to content

Commit

Permalink
Remove guest restriction for searching characters (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnowhere authored Jan 15, 2024
1 parent c451e5e commit bda3f9f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ class Client {
}
async searchCharacters(characterName) {
if (!this.isAuthenticated()) throw Error("You must be authenticated to do this.");
if (this.#isGuest) throw Error("Guest accounts cannot use the search feature.");
if (characterName == undefined || typeof(characterName) != "string") throw Error("Invalid arguments.");

const request = await this.requester.request(`https://beta.character.ai/chat/characters/search/?query=${characterName}`, {
Expand Down

0 comments on commit bda3f9f

Please sign in to comment.