dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
684 stars 162 forks source link

Cant get ctx.message.author #216

Closed Lord3n20 closed 2 years ago

Lord3n20 commented 2 years ago

Summary

Cant get ctx.message.author

Reproduction Steps

import discord
from discord.ext import commands

class add(commands.Cog):
    def __init__(self, client):
        self.client = client

    @commands.command()
    async def join(ctx):
        await ctx.send(ctx.message.author)

def setup(dc):
    dc.add_cog(add(dc))

Just start that cog.

Code

No response

Expected Results

I get whats in ctx.message.author in the discord chat

Actual Results

I get None#0 in the chat

System Information

Cant give informations on this

Checklist

Additional Information

No response

dolfies commented 2 years ago

Update the library. Also for future reference, the system information field is there for a reason.

Lord3n20 commented 2 years ago

I somehow fixed it

dolfies commented 2 years ago

This was a problem in very old versions of the library. Update it and it is no longer a problem.