Please work I beg you
parent
7ea14307f1
commit
6043643a94
|
|
@ -19,7 +19,7 @@ class Toadling
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->discord = new Discord([
|
$this->discord = new Discord([
|
||||||
'token' => 'OTAyODgxNTUzMjU5MDQ0OTM1.YXk3-Q.VYjX0smJWx4eCRVbxP_ACA3veXI',
|
'token' => 'OTAyODgxNTUzMjU5MDQ0OTM1.YXk3-Q.VYjX0smJWx4eCRVbxP_ACA3veXI',
|
||||||
'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS | Intents::GUILD_PRESENCES,
|
'intents' => Intents::getDefaultIntents() | Intents::GUILDS | Intents::GUILD_MEMBERS | Intents::GUILD_PRESENCES,
|
||||||
'loadAllMembers' => true,
|
'loadAllMembers' => true,
|
||||||
]);
|
]);
|
||||||
$this->discord->on('ready', [$this, 'initialize']);
|
$this->discord->on('ready', [$this, 'initialize']);
|
||||||
|
|
@ -88,7 +88,7 @@ class Toadling
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
array_push($rolesArrayPositions, $colorRole->id);
|
array_splice($rolesArrayPositions, count($rolesArrayPositions)-1, 0, [$colorCode->id]);
|
||||||
$guild->updateRolePositions($rolesArrayPositions);
|
$guild->updateRolePositions($rolesArrayPositions);
|
||||||
$message->member->addRole($colorRole);
|
$message->member->addRole($colorRole);
|
||||||
$message->delete();
|
$message->delete();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue