Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export utils #614

Merged
merged 1 commit into from
May 11, 2024
Merged

feat: export utils #614

merged 1 commit into from
May 11, 2024

Conversation

KeyboardRage
Copy link
Contributor

I am using a somewhat modified version of Slash-Create to support multi-token bots. To avoid extra maintenance I simply leverage JS to modify methods, specifically, the _onRequest handler.

I bring my own slightly modified version of the method in a dedicated file and override the method and binds. However, this request handler method depends on the verifyKey utility.

It would be nice if it was also exported so I could simply import via something like this

// In my onRequest.ts
import { verifyKey } from "slash-create";

// ... rest of the _onRequest() handler, with modifications

Added global export from all in `/node/util`
@Snazzah Snazzah changed the title Global export for /node/util.ts feat: export utils May 11, 2024
@Snazzah Snazzah merged commit bd8d384 into Snazzah:master May 11, 2024
4 checks passed
@Snazzah Snazzah added the type: enhancement New feature or request label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants