PHPackages                             suphiyasin/discord-user-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. suphiyasin/discord-user-api

ActiveLibrary[API Development](/categories/api)

suphiyasin/discord-user-api
===========================

An API that does the user's work

013PHP

Since Jun 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/suphiyasin/Discord-User-Api)[ Packagist](https://packagist.org/packages/suphiyasin/discord-user-api)[ RSS](/packages/suphiyasin-discord-user-api/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Hits](https://camo.githubusercontent.com/a1e404188a0bdc2381be02e4de18346f27671389ea7a0b3a4edb7936b13764a4/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d68747470733a2f2f6769746875622e636f6d2f7375706869796173696e2f446973636f72642d557365722d41504926636f756e745f62673d253233433833443344267469746c655f62673d2532333035373338362669636f6e3d2669636f6e5f636f6c6f723d253233424130383038267469746c653d5669657726656467655f666c61743d66616c7365)](https://github.com/suphiyasin/Discord-User-API)

[![Logo](https://camo.githubusercontent.com/7f576dcaadd8aa12e55d815a3610259b8a12ef28f76df97fa568f63941f8356f/68747470733a2f2f7777772e64727570616c2e6f72672f66696c65732f70726f6a6563742d696d616765732f646973636f72645f6c6f676f5f302e706e67)](https://github.com/suphiyasin/Discord-User-API/)

### Dıscord User API V1.0.0

[](#dıscord-user-api-v100)

 An API that does the user's work.
 [Feedback](https://github.com/suphiyasin/Discord-User-API/issues)
 [Türkçe](https://github.com/suphiyasin/Discord-User-API/blob/main/README-TR.md)

Firstly
=======

[](#firstly)

Get CloudFlare cookie from discord.com (For 'im not a robot') Than use login functions and get token . First :

```
echo $use->login("mailAdress", "password");

```

and copy the result

```
$use->auth = 'PASTE HERE';

```

we no longer need to log in on every functions but if you don't want to write auth code, you have to write login function

Examples
========

[](#examples)

### Server

[](#server)

1- Create Channel

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->createServer("My New Server");

```

2-Delete Channel

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
//get server link from any channel
$use->deleteServer("https://discord.com/channels/988562948479910011/988562949226516504");

```

3- Send Message To Servers

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->sendServer("YOUR MESSAGE", "[LINK OF THE CHANNEL YOU SENT THE MESSAGE]");

```

4- Change Owner

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->changeOwner("SERVER LINK", "NEW ADMIN DM LINK (EXPL => https://discord.com/channels/XXXX/XXXX )");

```

5- Join Server

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->joinServer("DISCORD TAG EXMPL => valorant , github ");
//not url

```

### User

[](#user)

1- Change Statu

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
//invisible, dnd, idle, online
$use->setStatu("online");

```

2-Public Statu

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->PubStatu("Yo Bro Whatzup", "👍");

```

3- Username Change

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->changeUsername("NEW USERNAME", "discordPassword");

```

4- Password Change

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->changePassword("OLD PASS", "NEW PASS");

```

### Message

[](#message)

1- Send Message To Servers

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->sendServer("YOUR MESSAGE", "[LINK OF THE CHANNEL YOU SENT THE MESSAGE]");

```

2- Send Message To DM

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->sendMessage("YOUR MESSAGE", "DM LINK", "RECEIVER USERNAME");

```

3- Show Messages

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->messages("DM LINK");

```

### Other

[](#other)

1- Get User Info (Profile Pic, UserID)

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->auth = 'Auth Code';
$use->getUserInfo("HER DM LINK", "HER USERNAME");

```

2-Login

```
$use = new dc();
$use->cookie = 'CLOUDFLARED DISCORD COOKIE';
$use->login("MailAdress", "Password");
//if you are using login function you don't need to specify auth
$use->getUserInfo("HER DM LINK", "HER USERNAME");
//but every time 'functions' logs in, discord says reset password

```

updated

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffb895deaa2bc8a4a1fbe201b56b091be4de3def8ccaaac462038b1f46235317?d=identicon)[suphiyasin](/maintainers/suphiyasin)

---

Top Contributors

[![suphiyasin](https://avatars.githubusercontent.com/u/65618247?v=4)](https://github.com/suphiyasin "suphiyasin (43 commits)")

---

Tags

auto-joinerdiscorddiscord-apidiscord-auto-joindiscord-automationdiscord-joinerjoinjoin-bot-apispammerunofficial-api

### Embed Badge

![Health badge](/badges/suphiyasin-discord-user-api/health.svg)

```
[![Health](https://phpackages.com/badges/suphiyasin-discord-user-api/health.svg)](https://phpackages.com/packages/suphiyasin-discord-user-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M451](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
