-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduled_events
method of Guild Object isn't working as it should
#1364
Comments
Can you check if the commit I added to my fork, plun1331@37b62c7, fixes this? Also, are you using the latest version from GitHub? If not, I would see if that fixes the issue. |
Yes, I'm using latest version from Github, master branch,, |
Well i noticed some weird stuff.. But when I tried the same thing in another server.. it gave me error (image attached): And the error that I received is: Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.9/site-packages/jishaku/features/python.py", line 151, in jsk_python
send(await self.jsk_python_result_handling(ctx, result))
File "/app/.heroku/python/lib/python3.9/site-packages/jishaku/features/python.py", line 101, in jsk_python_result_handling
result = repr(result)
File "/app/.heroku/python/lib/python3.9/site-packages/discord/scheduled_events.py", line 230, in __repr__
f"<ScheduledEvent id={self.id} "
TypeError: __str__ returned non-string (type Object) P.S: This all happened without using @plun1331 's commit. Informing cuz.. i just felt like telling 'bout this :> |
yes @plun1331 , your commit is working, i tried it in the guild where i was getting the error & with your commit it worked totally fine. Waiting for commit to get merged in master branch ASAP 😐 |
Summary
It gives TypeError where it should return the list of scheduled events
Reproduction Steps
I used jishaku and did the following:
Minimal Reproducible Code
@bot jsk py _ctx.guild.scheduled_events
Expected Results
I expect it to return ScheduledEvent Object just like how it is suppose to work.
When I tried the same thing (
ctx.guild.scheduled_events
) with discord.py, i was able to retrieve ScheduledEvent object as per my expectations.Actual Results
i tried
_ctx.guild.scheduled_events
with jishaku and I got thisIt's always TypeError when there is some scheduled event in guild (this is not fine), but when there's no scheduled, it returns an empty list (this is fine)
Intents
default intents
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: