Skip to content

Instantly share code, notes, and snippets.

View Pranav-Saxena's full-sized avatar
:octocat:
Error 403

Pranav Saxena Pranav-Saxena

:octocat:
Error 403
View GitHub Profile
# Code For RoleAll command which will add the desired role to all the members in the server!!
import discord
from discord.ext import commands
import asyncio
intents = discord.Intents(messages = True, guilds = True, members = True)
#Note - You need to enable Members intent from discord developers portal if you haven't already
bot = commands.Bot(command_prefix="Bot_Prefix_Here", intents = intents)