xyter/src/commands/reputation/subcommands/repute/components/noSelfReputation.ts
Vermium Sifell 3c079943b0 refactor: 🧑‍💻 modules are called subcommands and groups
It makes more sense to use subcommands and groups as names instead of modules
2022-12-19 20:44:17 +01:00

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");
}
};