Discord Bot Can't Mention Everyone Despite Having Its Permission
Here is the sendMessage function: async def sendMessage(color, title, value, should_delete=True, channel=''): embed = discord.Embed(color=color) embed.add_field(name=title,
Solution 1:
You can try to sending a mention to everyone through the default_role
attribute
@bot.command(pass_context=True)asyncdefevy(msg):
await bot.say(msg.message.server.default_role)
Solution 2:
You can try this block code. roles
return a list all guild's roles, but first role always a default guild role (default_role
) and that's why you must use slicing function.
@bot.command()asyncdeftest(ctx):
await ctx.send(ctx.message.guild.roles[0])
Or you can do something like this.
@bot.command()asyncdeftest(ctx):
await ctx.send(ctx.message.guild.default_role)
Post a Comment for "Discord Bot Can't Mention Everyone Despite Having Its Permission"