Closed virlion closed 7 months ago
What you're showing doesn't have anything to do with the library. The error implies you're doing ctx.lvl
or in your case, inter.lvl
which would be wrong.
"AttributeError: 'Context' object has no attribute 'lvl'
Note 1: You're using member_data
as a dictionary with a key of user_id
/rank
when the MemberData
object is not subscriptable. It also has an attribute for member IDs (MemberData.id_number
) and one for rank (MemberData.rank
).
Note 2: You don't need to specifically create a top 10 list the way you did. The each_member_data()
method comes with the limit
parameter. So it would be easier to do lvl.each_member_data(..., limit=10)
HI,
sorry for the late reply but I don't understand what the error is related to the self.lvl
line. I fixed the rest but the problem persists.
To avoid opening other issues I would like to talk to him about another bug, namely that the roles of the awards are not added (I think I was not wrong since I followed the full example)
I would also suggest that you can put both the str and the embed in the levelupannouncement.
Hello, con you fix that as fast as possible please.
This is my top command:
This is the traceback
Required Checklist