Category : discord.py-rewrite

I would like my bot to send a msg when someone joins the server (also mention them) @client.event async def on_member_join(member): print(‘welcome!’f'{member}’) the only thing i want to change is this should be displayed in the general channel (its printing it in the terminal now) and that instead of only displaying the person’s name i ..

Read more

So I have this code @client.event async def on_message(msg): bprole = msg.guild.get_role(773370896773021716) filter = [#a list of filtered word, in actual code this list have items] member = msg.guild.get_member(msg.author.id) for word in filter: if bprole not in member.roles: if msg.channel.id != 715097440369508484: if msg.content.count(word) > 0: print("%s Has said a bad word" % (msg.author.id)) await ..

Read more

So I have made a suggestion command using discord.py and here is the current code: @client.command() async def suggest(ctx, *, args): await ctx.message.add_reaction("🗑️") channel1 = client.get_channel(channel_id) embed = discord.Embed(title = "Suggestion from: " + ctx.author.name, color = 1752220) embed.set_author(name = ctx.author.name, icon_url = ctx.author.avatar_url) embed.add_field(name = "Author’s Suggestion:", value = args) msg = await channel1.send(embed ..

Read more