Skip to content

Commit

Permalink
chore: add DiscordIxLive layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Dec 1, 2023
1 parent 05b4d87 commit 18a5977
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
RateLimiterLive as RateLimiterLive,
} from "dfx/RateLimit"
import * as Layer from "effect/Layer"
import { InteractionsRegistryLive } from "./gateway"

export {
DiscordGateway,
Expand All @@ -40,3 +41,7 @@ export const DiscordLive = Layer.mergeAll(
Layer.provide(MemoryShardStoreLive),
Layer.provideMerge(LogLive),
)

export const DiscordIxLive = InteractionsRegistryLive.pipe(
Layer.provideMerge(DiscordLive),
)

0 comments on commit 18a5977

Please sign in to comment.