ModmailActions are not populating
shiruken opened this issue · comments
Describe the Bug
Accessing the mod_actions
field within a ModmailConversation fails to load the associated ModmailActions.
Desired Result
The mod_actions
field should contain a list of ModmailActions lazily-loaded for the corresponding ModmailConversation.
Relevant Logs
No response
Code to reproduce the bug
subreddit = reddit.subreddit("science")
for conversation in subreddit.modmail.conversations(limit=10, state="archived"):
# Messages are loading properly
for message in conversation.messages:
print(message.id)
# No ModmailActions are loaded
for mod_action in conversation.mod_actions:
print(mod_action.id)
# Attempting to access the misspelled field `modActions` throws an AttributeError,
# but results in the ModmailActions properly loading on subsequent try
conversation.modActions
conversation.mod_actions # Correctly lists desired ModmailActions
My code example does not include the Reddit()
initialization to prevent credential leakage.
Yes
This code has previously worked as intended.
Yes
Operating System/Environment
macos Monterey 12.6
Python Version
Python 3.10.6
PRAW Version
7.6.0
Prawcore Version
2.3.0
Anything else?
No response
This could potentially be related to this issue reported in the subreddit: PRAW only fetches the last message in a modmail conversation
My code above is exhibiting the same problem, only the most recent message is being loaded for each ModmailConversation.
This issue is stale because it has been open for 20 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
This is most likely related to the post you linked above. Some investigation will be needed to find out if this has always been the case of it there was a change with Reddit's API.
This issue was closed because it has been stale for 30 days with no activity.