Skip to content

Instantly share code, notes, and snippets.

@jrcarl624
Last active November 25, 2021 04:59
Show Gist options
  • Save jrcarl624/f66a490dd449f5da92946c46d0a91641 to your computer and use it in GitHub Desktop.
Save jrcarl624/f66a490dd449f5da92946c46d0a91641 to your computer and use it in GitHub Desktop.
stuff
        Object.values(Commandstrut).forEach((element: (Command?: any, eventData?: any) => {
            name: string,
            description?: string,
            aliases?: Array<string>,
            usage?: string,
            example?: string,
            cancelMessage?: string,
        }) => {
            if (element().aliases.includes(Command[0]) || element().name == Command[0]) {
                if (Commandstrut[Command[0]](Command, eventData).cancelMessage == true) {
                    eventData.cancel = true;
                }
            }
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment