Skip to content

Commit

Permalink
sss
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Dec 27, 2023
1 parent d2f4556 commit 4c81e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/presences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { IntoDependencies } from "../types/ioc";
import type { Emitter } from "./contracts/emitter";

type Status = 'online' | 'idle' | 'invisible' | 'dnd'
type PresenceReduce = (previous: Result) => Result;

export interface Result {
status?: Status;
Expand All @@ -21,15 +22,14 @@ export type Config <T extends (keyof Dependencies)[]> =

/**
* A small wrapper to provide type inference.
* Create a Presence module which **MUST** be put in a file called presence.<file-ending>
* Create a Presence module which **MUST** be put in a file called presence.<language-extension>
* adjacent to the file where **Sern.init** is CALLED.
*/
export function module<T extends (keyof Dependencies)[]>
(conf: Config<T>) {
return conf;
}

type PresenceReduce = (previous: Result) => Result;

/**
* Create a Presence body which can be either:
Expand Down

0 comments on commit 4c81e23

Please sign in to comment.