B
B
BARBARISKA02021-03-20 23:02:17
Python
BARBARISKA0, 2021-03-20 23:02:17

How to fix incorrect display of member.status?

The status of all participants is offline, and the status of the bot is online

import discord
from discord.ext import commands, tasks
from discord.utils import get

bot = commands.Bot(command_prefix=".")
client = discord.Client

@bot.command(pass_context=True)
async def status(ctx, member: discord.Member = None):
    if member != None:
        await ctx.send(str(member.status))
    else:
        await ctx.send(str(ctx.message.author.status))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-03-20
@Alexandre888

I am answering this question for the hundredth time:
go to the Discord Developer Portal , select your bot profile, open the Bot tab, scroll down a little, until Privileged Gateway Intents
opposite the PRESENCE INTENT and SERVER MEMBERS INTENT inscriptions, you need to switch the sliders to the on state.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question