-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
88 additions
and
44 deletions.
There are no files selected for viewing
Submodule discord-api-docs
updated
23 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
import type { HttpClient } from "@effect/platform/HttpClient" | ||
import type { DiscordConfig } from "dfx/DiscordConfig" | ||
import type { DiscordREST } from "dfx/DiscordREST" | ||
import { DiscordRESTLive } from "dfx/DiscordREST" | ||
import { | ||
MemoryRateLimitStoreLive as MemoryRateLimitStoreLive, | ||
RateLimiterLive as RateLimiterLive, | ||
} from "dfx/RateLimit" | ||
import type { RateLimiter } from "dfx/RateLimit" | ||
import { MemoryRateLimitStoreLive, RateLimiterLive } from "dfx/RateLimit" | ||
import * as Layer from "effect/Layer" | ||
|
||
export { | ||
BadWebhookSignature, | ||
WebhookConfig, | ||
WebhookParseError, | ||
makeHandler, | ||
makeSimpleHandler, | ||
WebhookConfig, | ||
layer as webhookLayer, | ||
layerConfig as webhookLayerConfig, | ||
WebhookParseError, | ||
} from "dfx/Interactions/webhook" | ||
|
||
export const DiscordLive = Layer.mergeAll( | ||
DiscordRESTLive, | ||
RateLimiterLive, | ||
).pipe(Layer.provide(MemoryRateLimitStoreLive)) | ||
export const DiscordLive: Layer.Layer< | ||
DiscordREST | RateLimiter, | ||
never, | ||
DiscordConfig | HttpClient.Service | ||
> = Layer.mergeAll(DiscordRESTLive, RateLimiterLive).pipe( | ||
Layer.provide(MemoryRateLimitStoreLive), | ||
) |