It makes more sense to use subcommands and groups as names instead of modules
7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
import { User } from "discord.js";
|
|
|
|
export default (to: User | null, from: User | null) => {
|
|
if (from?.id === to?.id) {
|
|
throw new Error("You can only repute other users");
|
|
}
|
|
};
|