Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #40 from KenCir:KenCir/issue39
Browse files Browse the repository at this point in the history
権限確認! #39
  • Loading branch information
KenCir authored Jul 26, 2021
2 parents 1f64687 + 79aa36a commit 24dee80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OutiServerPlugin/Tasks/discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Discord\Exceptions\IntentException;
use Discord\Parts\Channel\{Channel, Message};
use Discord\Parts\Permissions\RolePermission;
use Discord\Parts\User\Member;
use pocketmine\utils\TextFormat;
use React\EventLoop\Factory;
Expand Down Expand Up @@ -117,7 +118,7 @@ public function run()
]);
}
else if($command === "announce") {
if(count($args) < 2) return;
if(count($args) < 2 or (!$message->author->roles->has("771015602180587571") and !$message->author->roles->has("822852335322923060") and $message->guild->id === "706452606918066237")) return;
$this->command_Queue[] = serialize([
"name" => $command,
"channelid" => $message->channel_id,
Expand Down

0 comments on commit 24dee80

Please sign in to comment.