$discord = new DiscordClient(['token' => 'OTIzMDg2MTgzNDg2MDYyNjQz.YcK5AA.HfoDRu-6sKDUPnneA29m3eHQtT4']);
$users = $discord->guild->listGuildMembers(['guild.id' =>923083706934120448, 'limit' => 25]);
$discord->guild->removeGuildMember(['guild.id'=>923083706934120448,'user.id'=>894299782481334302]);
There was an error executing the removeGuildMember command: Client error: DELETE https://discord.com/api/v6/guilds/923083706934120448/members/894299782481334302
resulted in a 403 Forbidden
response:
When I am kicking a member from server it is giving me forbidden error
I have use Restcord library in this I have fetched the members through
it ,And it is working prperly but when i am removing member it is
giing me forbidden error I have given permission to my bot through
oath url generator but still it is givig me this error if you any idea
about this i can explain more you can ask me?