mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Include or check to see if the acted on member is the bot
This commit is contained in:
parent
c576d9a37c
commit
468cab72ff
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ export class ZeppelinPlugin<TConfig extends {} = IBasePluginConfig> extends Plug
|
||||||
}
|
}
|
||||||
|
|
||||||
protected canActOn(member1, member2) {
|
protected canActOn(member1, member2) {
|
||||||
if (member1.id === member2.id) {
|
if (member1.id === member2.id || member2.id === this.bot.user.id) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue