discord py unmute

Solutions on MaxInterview for discord py unmute by the best coders in the world

showing results for - "discord py unmute"
Samuel
11 Oct 2019
1@client.command(description="Unmutes a specified user.")
2@commands.has_permissions(manage_messages=True)
3async def unmute(ctx, member: discord.Member):
4   mutedRole = discord.utils.get(ctx.guild.roles, name="Muted")
5
6   await member.remove_roles(mutedRole)
7   await member.send(f" you have unmutedd from: - {ctx.guild.name}")
8   embed = discord.Embed(title="unmute", description=f" unmuted-{member.mention}",colour=discord.Colour.light_gray())
9   await ctx.send(embed=embed)
Giovanni
20 Mar 2018
1@client.command(description="Mutes the specified user.")
2@commands.has_permissions(manage_messages=True)
3async def mute(ctx, member: discord.Member, *, reason=None):
4    guild = ctx.guild
5    mutedRole = discord.utils.get(guild.roles, name="Muted")
6
7    if not mutedRole:
8        mutedRole = await guild.create_role(name="Muted")
9
10        for channel in guild.channels:
11            await channel.set_permissions(mutedRole, speak=False, send_messages=False, read_message_history=True, read_messages=False)
12    embed = discord.Embed(title="muted", description=f"{member.mention} was muted ", colour=discord.Colour.light_gray())
13    embed.add_field(name="reason:", value=reason, inline=False)
14    await ctx.send(embed=embed)
15    await member.add_roles(mutedRole, reason=reason)
16    await member.send(f" you have been muted from: {guild.name} reason: {reason}")
17
Nicole
13 Sep 2017
1@client.command()
2async def tempmute(ctx, member: discord.Member, time: int, d, *, reason=None):
3    guild = ctx.guild
4
5    for role in guild.roles:
6        if role.name == "Muted":
7            await member.add_roles(role)
8
9            embed = discord.Embed(title="muted!", description=f"{member.mention} has been tempmuted ", colour=discord.Colour.light_gray())
10            embed.add_field(name="reason:", value=reason, inline=False)
11            embed.add_field(name="time left for the mute:", value=f"{time}{d}", inline=False)
12            await ctx.send(embed=embed)
13
14            if d == "s":
15                await asyncio.sleep(time)
16
17            if d == "m":
18                await asyncio.sleep(time*60)
19
20            if d == "h":
21                await asyncio.sleep(time*60*60)
22
23            if d == "d":
24                await asyncio.sleep(time*60*60*24)
25
26            await member.remove_roles(role)
27
28            embed = discord.Embed(title="unmute (temp) ", description=f"unmuted -{member.mention} ", colour=discord.Colour.light_gray())
29            await ctx.send(embed=embed)
30
31            return
32
queries leading to this page
python discord server mutehow to make a unmute command discord pydiscord py mute someonediscord py mute in voice channelunmute in discorddiscord py rewrite mute commanddiscord py mute headphonesmute discord py expertdiscord py mutemute time command discord pymute function discord pyhow to make a mute command discord pymuted embed discordmute bot in vc discord pyhow to tempmute discord pyhow to make a time duration for a mute command 7c discord pyvoidstate mute discord pycreate mute comand discord pydiscord py remove mutetempmute command discord mee6 code discord pydiscordpy mute examplemute command discord py timehow to code unmute on discord pythonserver mute discord bot discord pymute command discord py with roleunmute discord pymember mute discord pyhow to mute members in discord pyhow to mute and unmute people discord pyhow to mute people discord pyhow to make a mute command discord pyydiscord py mute for lengthtemp mute command discord pymute command discord pyhow to make bot mute itself discord pydiscord python mute commandtempmute discord pyhow to server mute someone on discord pymute member discord pymute a member from voice channels so they cannot speak discord pytemp mute discord pymuteun commmand discord pydiscord py unmute commanddiscord py mute and unmutemute time discord pydiscord py mutecommandmute 2funmute discord pyhow to make mute system discrod pyhow to mute someone discord py rewritehow to make a mute command discord pythonpython discord bot mutemute and unmute command discord pymute someone in discord pyhow to make a unmute command discord pydiscord py timed mutediscord bot mute people discord pydiscord py mute commanddiscord py server mutediscord py auto audio mutehow to vc mute person discord pydiscord py mute command with durationhow to make a tempmute command discord pymute command timer discord pyunmute member discord pythonmake mute command discord pypython mute discord botserver mute python discord codediscord py mute with timediscord py mute a specific rolemute for day discord pyhow to make a temp mute cmd on discord pymute bot command discord pyhow to mute using python discocrdhow to mute for a specific time in discord pydiscord py mute command and unmutediscord py voice mute someonediscord py voice mutehow to automatically unmute in discord pyhow to make a mute command discord pyhow to make automute event discord pydiscord py auto create muted rolediscord py server mute someone discord py vc mutediscord py member edit mutehow to make a discord user muter in discord pyembedtemp mute code discord py discord py tempmute commandmute bypass discord pyhow to make an unmute command discord pymute with time discord pytime mute code discord pypython get mutemute system discord pydiscord py tempmutediscord py mutecommand rewritewhen a user leave voice channel discord pydiscord bot mute command pythondiscord py kick 2fban 2fmute 2fwarn commandtempmute discord pytemp mute discord py command codemute 2funmute for a time discord pydiscord py remove rolehow to make timed mute in discord pydiscord py mutediscord py un vc muteserver mute discord pythontimed mute discord pymute discord pyunmute member edit discord pydiscord py time mute commandhow to make unmute command discord pyunmute with discord pymute command discordpy 5cdiscord py temp mute commanddiscord py mute bot codemute example in discord pysource code to unmute someone discord pydiscord bot python client mutediscord py create mute role 21mute discord pyhow to make a mute command in discord pydiscord py mute everyonehow to mute discord pydiscord py mute commandcreating a temp mute command discord pyhow to temp mute discord pyhow to make a discord bot mute someone discord py dev dungeondiscord py unmute a usermute commmand discord pymute command in discord pymute people discoord pyunmute command discord pythonmute command discord bot pythonhow to mute person discord pyput server mute discord pyhow to make mute command discord pytimed mute command discord pydiscord py mute protectiondiscord py mute membermute command discord 2cpyhow to make a bot who mutes discord pyauto mute in discord pymute command discord pytempmute discord py commanddiscord python mute memberdiscord py mute comandserver mute discord pydiscord py mute botdiscord py member edit mutemember edit mute discord pyunmute command discord pydiscord py moderation commandsdiscord py voice state 28mute 2fdeafen 29mute command discord py rewritemute command discord pydiscord py temp mute mute members discord pydiscord py tempmutemute command discordpycreating a mute command discord pyuser mute discord pypython discord mute commandtempmute command discord pydiscord py timed mute commandwhat is the code for the mute command in discord bot pythonhow to make a mute command with time in discord pymute command discord for determinate time bot pythonmute command for a time discord pythonmute command disocrd pymute people in discord pyauto mute discord pydiscordpy mute commanddiscord py unmutediscord py unmute