|
@@ -344,11 +344,6 @@ export class ViolationPlugin {
|
|
|
return { ok: false };
|
|
|
}
|
|
|
|
|
|
- if (userId == message.author.id) {
|
|
|
- await message.reply(`cannot ${command} yourself!`);
|
|
|
- return { ok: false };
|
|
|
- }
|
|
|
-
|
|
|
const user = await this.resolveUser(userId);
|
|
|
|
|
|
if (!user) {
|
|
@@ -357,6 +352,11 @@ export class ViolationPlugin {
|
|
|
return { ok: false };
|
|
|
}
|
|
|
|
|
|
+ if (user.id == message.author.id) {
|
|
|
+ await message.reply(`cannot ${command} yourself!`);
|
|
|
+ return { ok: false };
|
|
|
+ }
|
|
|
+
|
|
|
if (user.id == client.botUser.id) {
|
|
|
await message.reply(`cannot apply ${command} on me!`);
|
|
|
return { ok: false };
|