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;
}
}
});
Last active
November 25, 2021 04:59
-
-
Save jrcarl624/f66a490dd449f5da92946c46d0a91641 to your computer and use it in GitHub Desktop.
stuff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment