Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

discord.py unmute

@client.command(description="Unmutes a specified user.")
@commands.has_permissions(manage_messages=True)
async def unmute(ctx, member: discord.Member):
   mutedRole = discord.utils.get(ctx.guild.roles, name="Muted")

   await member.remove_roles(mutedRole)
   await member.send(f" you have unmutedd from: - {ctx.guild.name}")
   embed = discord.Embed(title="unmute", description=f" unmuted-{member.mention}",colour=discord.Colour.light_gray())
   await ctx.send(embed=embed)
Comment

PREVIOUS NEXT
Code Example
Python :: python take a screenshot 
Python :: python infinite value 
Python :: get max float value python 
Python :: open website python 
Python :: matplotlib add space between subplots 
Python :: python randomise between 0 or 1 
Python :: dns request scapy 
Python :: cos in python in degrees 
Python :: distance euc of two arrays python 
Python :: sklearn rmsle 
Python :: record video with python 
Python :: console clear python 
Python :: how to read from a file into a list in python 
Python :: How to convert an integer number into words in python? 
Python :: python convert current datetime to rfc 1123 format 
Python :: check if any value is null in pandas dataframe 
Python :: install wxpython 
Python :: filter list with python 
Python :: print two digits after decimal python 
Python :: how to migrate from sqlite to postgresql django 
Python :: what happen when we apply * before list in python 
Python :: increase limit of recusrion python 
Python :: train test split stratify 
Python :: count how many duplicates python pandas 
Python :: opencv python convert rgb to hsv 
Python :: type(type) == type 
Python :: python screen recorder 
Python :: how to align text in tkinter 
Python :: python float to string n decimals 
Python :: convert 1 digit to 2 digit python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =