Skip to content

Commit

Permalink
feat: add client#deregisterStore (#128)
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
Nytelife26 and kyranet authored Jan 4, 2021
1 parent 36e0a1f commit dedd6d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/SapphireClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@ export class SapphireClient extends Client {
return this;
}

/**
* Deregisters a store.
* @since 1.0.0
* @param store The store to deregister.
*/
public deregisterStore<T extends Piece>(store: Store<T>): this {
this.stores.delete((store as unknown) as Store<Piece>);
return this;
}

/**
* Loads all pieces, then logs the client in, establishing a websocket connection to Discord.
* @since 1.0.0
Expand Down

0 comments on commit dedd6d1

Please sign in to comment.