Category : discord

I have looked through several similar threads however after trying everything I could find I have gotten to a point where I do not have any error messages but nothing is happening. The events are not the problem, the command is not working as supposed. I wanted to implement the bot joining a voice channel ..

Read more

Hello guys im trying to write a code that gives me the discord server owner but its giving Me ‘None’ import discord client = discord.Client() TOKEN = ‘token’ @client.event async def on_message(message): if message.content.find("getowner") != -1: await message.channel.send(str(message.guild.owner)) client.run(TOKEN) Can someone please help me with this bot thanks!! I want to get the discord servers ..

Read more

When I type ?settings hoist or ?settings hoist yes/no it sends back Incorrect value, type ?settings for more information. It’s not passing the value of hoist. how do I make this work? @commands.command() @commands.has_permissions(administrator=True) async def settings(self, ctx, setting=None, value=None): if setting is None: await ctx.send(‘none’) elif setting == ‘hoist’: await self.hoist(ctx,value) else: embed = ..

Read more

I wanna remove all roles a member has when its if game_after How can I do for role in member.roles: await member.remove_roles(role) here? I get 404 Not Found (error code: 10011): Unknown Role when I do for role in member.roles: await member.remove_roles(role) @commands.Cog.listener() async def on_member_update(self, before, after): game_after = [i for i in after.activities ..

Read more

My goal is to create you a channel with your namewhen you react to one specific emoji on one specific message, . i’ve actually tried that: @bot.event async def on_raw_reaction_add(payload): message_id = payload.message_id if message_id == **************: guild = bot.get_guild(payload.guild_id) user = bot.get_user(payload.user_id) print(is_user(payload.user_id)) if is_user(payload.user_id): return chan = await guild.create_text_channel(user.name) await chan.set_permissions(user, read_messages=True,send_messages=True) new_user(payload.user_id,chan.id) ..

Read more