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

fix: fix eventModule typing for Discord events #368

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

DuroCodes
Copy link
Contributor

import { eventModule, EventType } from "@sern/handler";
import type { GuildMember } from "discord.js";

export default eventModule({
    type: EventType.Discord,
    name: "guildMemberAdd",
    async execute(member) {
      //          ^ this is now inferred properly 🔥
    },
});

@DuroCodes DuroCodes requested a review from jacoobes as a code owner August 14, 2024 13:10
src/core/modules.ts Show resolved Hide resolved
@jacoobes jacoobes self-requested a review August 16, 2024 02:52
@jacoobes jacoobes merged commit 1789ccb into sern-handler:main Aug 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants