Relative Content

Tag Archive for pythondiscorddiscord.py

Converting to “int” failed for parameter “b”

i’m trying to make bot command which adds two numbers together by requesting that they are turn into integers byspecifying the converter but for some reason i constantly get error that variables can’t convert into int

who know why my discord bot hasn’t unban people

@bot.command()
async def unban(ctx, *, member):
banned_users = await ctx.guild.bans()
try:
member_name, member_discriminator = member.split(“#”)
except:
await ctx.send(“:x: unbanned: User#0001”)
return

Generate invite from other servers (discord.py)

I’m doing a little experiment trying to see if I can generate invite from server my bot has been added to. I encounter a problem in the definition of something called InviteTarget that I am not even using (?)

Generate invite from oter servers (discord.py)

I’m doing a little experiment trying to see if I can generate invite from server my bot has been added to. I encounter a problem in the definition of something called InviteTarget that I am not even using (?)