I've been trying to get my own message history using the member.history() method. But all i get is an empty asyncIterator that doesn't have anything in it.
import discord
from discord.ext import commands
client = commands.Bot(command_prefix = ".",intents=discord.Intents.all())
@client.event
async def on_ready():
print('Bot is ready')
@client.command()
async def test(ctx):
me = ctx.guild.get_member_named("Slade")
print(me)
async for message in me.history(limit=5):
print(message)
client.run("token would go here")
The only thing the code above prints is the ready message and my own discord name and tag. What am i doing wrong?