mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge pull request #10 from DarkView/FixMutingTheBot
Include or check to see if the acted on member is the bot
This commit is contained in:
commit
b4ea5525c6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export class ZeppelinPlugin<TConfig extends {} = IBasePluginConfig> extends Plug
|
|||
}
|
||||
|
||||
protected canActOn(member1, member2) {
|
||||
if (member1.id === member2.id) {
|
||||
if (member1.id === member2.id || member2.id === this.bot.user.id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue