Role Discord Members (by username) from File

Overview

Role Discord Members (by username) from File

Bot Setup

  1. Navigate to https://discord.com/developers/applications
  2. Create a new application
  3. Navigate to the "Bot" tab
  4. Make sure "Public Bot" is checked
  5. Turn on "Server Members Intent" under "Priveleged Gateway Intents"
  6. Navigate to "OAuth2" and the "URL Generator Tab"
  7. Select "bot" from "Scopes", appropriate selections from "Bot Permissions" (Administrator may be overkill, but will get the job done)
  8. Copy & Paste the generated URL at the bottom & select designated server - this is inviting the bot to the server

Bot Setup in Server

  1. Ensure you assign your bot a role within your server that is higher than the role you intend to assign to your list/file of users with the bot - meaning the bot's highest role should be greater than the role it is assigning - allowing for the bot to assign and edit roles of other users. This is important! You might need to make a new role or change permissions within the role in Discord to allow the bot to edit roles.

Using this file

  1. To get the server ID - aka guild id as referred to in the file - make sure you have Developer Mode turned on in Discord (Settings-->Advanced-->Developer Mode)
  2. Find the designated server icon in the left side panel, right click and select 'Copy ID' from the tool tip. This should be inserted in line 20: guild = client.get_guild(ENTER SERVER ID HERE)
  3. Enter the role name you wish to assign to your list/file of users: role = discord.utils.get(guild.roles,name="ENTER ROLE NAME HERE")
  4. In order to connect the Bot you created in the first set of instructions - go back to https://discord.com/developers/applications, select your application and navigate to the "Bot" tab again
  5. Under "Token", (just to be safe), hit "Regenerate" and "Copy" this token
  6. Insert this token in line 41: client.run('PASTE TOKEN HERE')
You might also like...
Python SCript to scrape members from a selected Telegram group.

A python script to scrape all the members in a telegram group anad save in a CSV file. REGESTRING Go to this link https://core.telegram.org/api/obtain

Add members to unlimited telegram channels and groups
Add members to unlimited telegram channels and groups

Program Features πŸ“Œ Coded with Python version 10. πŸ“Œ without the need for a proxy. πŸ“Œ without the need for a Telegram ID. πŸ“Œ Ability to add infinite p

A smart tool to backup members πŸ“ˆ So you even after a raid/ ban you can easily restore them in  seconds 🎲
A smart tool to backup members πŸ“ˆ So you even after a raid/ ban you can easily restore them in seconds 🎲

πŸ€‘ Discord-backer πŸ€‘ A open-source Discord member backup and restore tool for your server. This can help you get all your members in 5 Seconds back af

BanAllBot - Telegram Code To Ban All Group Members very fast
BanAllBot - Telegram Code To Ban All Group Members very fast

BanAllBot Telegram Code To Ban All Group Members very fast FORK AND KANG WITH CR

πŸ”Ž Hunt down social media accounts by username across social networks
πŸ”Ž Hunt down social media accounts by username across social networks

Hunt down social media accounts by username across social networks Installation | Usage | Docker Notes | Contributing Installation # clone the repo $

 Fastest Tiktok Username checker on site.
Fastest Tiktok Username checker on site.

Tiktok Username Checker Fastest Tiktok Username checker on site

The successor of GeoSnipe, a pythonic Minecraft username sniper based on AsyncIO.
The successor of GeoSnipe, a pythonic Minecraft username sniper based on AsyncIO.

OneSnipe The successor of GeoSnipe, a pythonic Minecraft username sniper based on AsyncIO. Documentation View Documentation Features β€’ Mojang & Micros

A Telegram Music Tag Editor Bot that can remove almost all usernames in the music tags and add own username instead.

Music Tag Editor Bot A Telegram Music Tag Editor Bot that can remove almost all usernames in the music tags and add own username instead. It can also

A python script for hitting the kik API to enumerate people based on a username/userlist

kick3d Recon script for enumerating users off of the Kik API. This script has the ability to check single usernames or run through a userlist of usern

Owner
Dylan Orrell
Dylan Orrell
This bot can mention members upto 10,000 in groups and can mention members upto 200 in channels !

Mention All Bot This bot can mention members upto 10,000 in groups and can mention members upto 200 in channels ! ?? Infomation Language: Python. Tele

Anjana Madu 52 Dec 29, 2022
Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if itΒ΄s available

TikTok-AutoClaimer Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if itΒ΄s available Usage Python 3.6 or above is re

Kevin 18 Dec 8, 2022
VoiceMaster-Discord-Bot - Fork from original Discord bot with max channel limit, staff role and more

VoiceMaster VoiceMaster is a discord bot created to change the way servers work,

null 2 Feb 28, 2022
Easy to use reaction role Discord bot written in Python.

Reaction Light - Discord Role Bot Light yet powerful reaction role bot coded in Python. Key Features Create multiple custom embedded messages with cus

eibex 109 Dec 20, 2022
Discord Bot Sending Members - Leaked by BambiKu ( Me )

Wokify Bot Discord Bot Sending Members - Leaked by BambiKu ( Me ) Info The Bot was orginaly made by someone else! Ghost-Dev just wanted to sell "priva

bambiku 6 Jul 5, 2022
discord.xp Bot, counts XP for members

discord.xp Bot, counts XP for members. How to setup and run? You must have an mysql database Download libs from the requirements.txt file Configurize

irwing 4 Feb 5, 2022
Role Based Access Control for Slack-Bolt Applications

Role Based Access Control for Slack-Bolt Apps Role Based Access Control (RBAC) is a term applied to limiting the authorization for a specific operatio

Jeremy Schulman 7 Jan 6, 2022
Powerful Telegram Members Scraping and Adding Toolkit

?? Genisys V2.1 Powerful Telegram Members Scraping and Adding Toolkit ?? Features ?? ADDS IN BULK[by user id, not by username] Scrapes and adds to pub

The Cryptonian 16 Mar 1, 2022
A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha.

Emoji-Captcha-Bot A Telegram Bot which will ask new Group Members to verify them by solving an emoji captcha. About API: Using api.abirhasan.wtf/captc

Abir Hasan 52 Dec 11, 2022
Detects members having unicode names. Public bot: @scarletwitchprobot

✨ Scarletwitch bot ✨ Detects unicode names members in a tg chat & provides a option to take action on that user ! Public bot: @scarletwitchprobot Supp

ÁÑÑÍHÌLΓ…TØR SPΓ„RK 18 Nov 12, 2022