What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-02 09:51:33
hpw tp install discord.py
py -3 -m pip install -U discord.py Add solution -
Python 2022-02-01 21:06:00
how to make it that your discord bot can autorole in the discord.py rewrite
role = "Citizen" # Role to be autoroled when user joins @client.event async def on_member_join(member): rank = discord.utils.get(member.guild.roles, name=role) #Bot get guild(server) roles await member.add_roles(rank) print(f"... Add solution -
Python 2022-02-01 05:41:23
check if user has permission discord py admin discord.py
@bot.command() @has_permissions(kick_members=True) async def kick(self, ctx, Member: discord.Member): await bot.kick(Member) @kick.error async def kick_error(error, ctx): if isinstance(error, MissingPermissions): await ctx.send(&quo... Add solution -
Python 2022-01-31 22:11:21
python projects
# I understand that this isn't Grepper's primary use but here are some # fun little projects that I've found (self taught) to be really fun and # educational! def beginner(): # Beginner Projects beginner_proj =""" Everyone has to... Add solution -
Python 2022-01-30 23:22:56
what are discord bots
#go to -- https://python.org #Download and install python #go to CMD and install -- pip install discord import discord from discord.ext import commands Token_1 = input("put your bot token here :") Prefix_1 = input("put the prefix for your... Add solution -
Python 2022-01-29 10:30:48
how to kick and ban members with discord.py
#this was in a cog # The below code bans player. @commands.command() @commands.has_permissions(ban_members=True) async def ban(self, ctx, member: discord.Member, *, reason=None): await member.ban(reason=reason) await ctx.send(f'User {member... Add solution