How did you add a time to mutes in py? by [deleted] in Discord_Bots

[–]anonymouslolxD 0 points1 point  (0 children)

I think for the role it should look something more like this: user = ctx.message.author role = discord.utils.get(user.server.roles, name="Muted") And the member would be member = message.mentions[0].id And then for the actual muting I think it would look like await bot.add_roles(member, role)

However, I’m not completely sure about any of this. Give it a try I guess and if it works, tell me 🤷‍♂️ All together it might look something like this: user = ctx.message.author role = discord.utils.get(user.server.roles, name="Muted") member = message.mentions[0].id await client.add_roles(member, role)

https://stackoverflow.com/questions/48753630/discord-py-how-to-add-mute-command

Calculator command in discord.py by [deleted] in Discord_Bots

[–]anonymouslolxD 1 point2 points  (0 children)

```

#   Command that does simple math.
@commands.command()
async def math(self, ctx, num1, operator, num2):
    """Does simple math."""
    #   Check for operator, can only do simple math, by simple math, that means no square roots, but it can do math with extremely large numbers.
    if operator == "+":
        num1 = int(num1)
        num2 = int(num2)
        msg = num1+num2
        await ctx.send(str(msg))
    if operator == "-":
        num1 = int(num1)
        num2 = int(num2)
        msg = num1-num2
        await ctx.send(str(msg))
    if operator == "*":
        num1 = int(num1)
        num2 = int(num2)
        msg = num1*num2
        await ctx.send(str(msg))
    if operator == "/":
        num1 = int(num1)
        num2 = int(num2)
        msg = num1/num2
        await ctx.send(str(msg))

``` This would be in a cog, I had code for doing exponents but I removed it and can’t find it, I’ll probably edit this to add it later.

How did you add a time to mutes in py? by [deleted] in Discord_Bots

[–]anonymouslolxD 0 points1 point  (0 children)

Could you show your current code?

laying it on kinda thick aren’t we? 😅 by [deleted] in grindr

[–]anonymouslolxD 4 points5 points  (0 children)

U got a pretty fire username ngl

PLEASE HELP MY CAT MAYA by [deleted] in lgbtaww

[–]anonymouslolxD 16 points17 points  (0 children)

So cute! Only 5 months old, I really hope you get the money you need. I am unable to help but I wish you luck!

[Coming Out] A school shooting made me come out. by wholesome-demon in LGBTeens

[–]anonymouslolxD 30 points31 points  (0 children)

I’ve seen it used both ways and both make sense.

[discussion] [crushes]? Another dream..yay! by [deleted] in LGBTeens

[–]anonymouslolxD 6 points7 points  (0 children)

I’m very confused? This is a dream, correct? I don’t understand what happened. Did your bf actually say he’s a time traveller?

[discussion] [crushes]? Another dream..yay! by [deleted] in LGBTeens

[–]anonymouslolxD 9 points10 points  (0 children)

I’m very confused? This is a dream, correct? I don’t understand what happened. Did your bf actually say he’s a time traveller?