UNPKG

discord-info

Version:

Get Guild & User Info With This Module

110 lines (77 loc) 5 kB
<h1 align="center"> <img src="https://discord.com/assets/ff41b628a47ef3141164bfedb04fb220.png" width="224px" alt="discord"/> <br/> Discord Info </h1> <h3 align="center">An <a href="https://nodejs.org/">NODE</a> Module For Getting Data From Discord API Called <a href="https://www.npmjs.com/package/discord-info">Discord Info</a></h3> # ## Functions : </br> <h4 align="center"> Invite - User - Guild - GuildRoles - GuildEmojis - Account - AccountSettings - AccountGuilds </h4> # ## Function Object Info : </br> ``` url : The Server Invite Code (Just The Code) ``` ``` GuildID : The Server ID ``` ``` BotToken : Token Of Bot ``` ``` UserToken : Account Token ``` ## Example Of Usage : ```js const { Invite , User} = require('discord-info') Invite({ url: '' }).then((response) => { console.log(response) }) User({ UserID: '', BotToken: '' }).then((response) => { console.log(response) }) // --------- OR --------- // const INFO /* Or Every Var You Want */ = require('discord-info') INFO.Guild({ GuildID: '', BotToken: '' }).then((response) => { console.log(response) }) INFO.AccountGuilds({ UserToken: '' }).then((response) => { console.log(response) }) ``` Or Visit [test](https://github.com/hadiazt/discord-info/blob/main/index.test.js) File </br> <p align="center"> <img alt="GitHub language count" src="https://img.shields.io/github/languages/count/hadiazt/discord-info"> &nbsp; <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/hadiazt/discord-info"> &nbsp; <img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen"> &nbsp; <img src="https://img.shields.io/badge/IR-flag.svg?color=555555&style=flat&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTAwMCIgaGVpZ2h0PSI1NzIuMiIgdmlld0JveD0iLTcuMjE3IC00LjEyOSAxMDAwIDU3Mi4yIj48cGF0aCBkPSJNLTcuMjE3LTQuMTI5aDEwMDB2NTcyLjJoLTEwMDB6IiBmaW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wJSIgaGVpZ2h0PSIxMDAlIi8+PC9nPjxnIHRyYW5zZm9ybT0ibWF0cml4KDY5LjI4NSAwIDAgNjkuMjg1IDQ5Mi43ODMgMjgxLjk3MSkiIGZpbGw9IiNkYTAwMDAiPjxnIGlkPSJmIj48cGF0aCBkPSJNLS41NDguODM2QS45MTIuOTEyIDAgMCAwIC4zMjktLjcyMiAxIDEgMCAwIDEtLjU0OC44MzYiLz48cGF0aCBkPSJNLjYxOC42NjFBLjc2NC43NjQgMCAwIDAgLjQyMi0uNzQgMSAxIDAgMCAxIC42MTguNjYxTTAgMWwtLjA1LTFMMC0uNzg3YS4zMS4zMSAwIDAgMCAuMTE4LjA5OVYtLjFsLS4wNC45OTN6TS0uMDItLjg1TDAtLjgzMWEuMTQ0LjE0NCAwIDAgMCAuMjUyLS4xMzdBLjEzNi4xMzYgMCAwIDEgMC0uOTI1Ii8+PC9nPjx1c2UgeGxpbms6aHJlZj0iI2YiIHRyYW5zZm9ybT0ic2NhbGUoLTEgMSkiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiLz48L2c+PC9zdmc+" alt="ir"> </p> <br/> <br/> <br/> ## 📊 Repo Stats <p align="left"> <img src="https://img.shields.io/github/forks/hadiazt/discord-info.svg" alt="forks"> <img src="https://img.shields.io/github/stars/hadiazt/discord-info.svg" alt="stars"> <img src="https://img.shields.io/github/watchers/hadiazt/discord-info.svg" alt="watchers"> </p> <br/> ## 🤝 Contributing 1. [Fork the repository](https://github.com/hadiazt/discord-info/fork) 2. Clone your fork: `git clone https://github.com/your-username/discord-info.git` 3. Create your feature branch: `git checkout -b my-new-feature` 4. Commit your changes: `git commit -am 'Add some feature'` 5. Push to the branch: `git push origin my-new-feature` 6. Submit a pull request <br/> # 🌟 Spread the word! If you want to say thank you and/or support active development of the repo: - Add a GitHub Star to the project! - Join our discord servers [sosis](https://discord.gg/4zY83B9GnZ). - Follow my profile [hadi-az](https://github.com/hadiazt) Thanks so much for your interest in growing the reach of the repo! <br/> # ⚠️ License This repo is free and open-source software licensed under the MIT General Public License v3.0. All designs were created by [hadi-az](https://github.com/hadiazt). <br />