Skip to content

Commit

Permalink
fixes to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Oct 5, 2024
1 parent 118a8c7 commit d779a79
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 @@ -4,7 +4,7 @@ import type { Emitter } from "./interfaces";
import { Awaitable } from "../types/utility";

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

export const Presence = {
/**
Expand Down Expand Up @@ -59,7 +59,7 @@ export declare namespace Presence {
activities?: ActivitiesOptions[];
shardId?: number[];
repeat?: number | [Emitter, string];
onRepeat?: (previous: Result) => Result;
onRepeat?: PresenceReduce
}
}

0 comments on commit d779a79

Please sign in to comment.