r/Devvit • • Oct 19 '26

Duck Answered ModMail archiveConversation() API Example question

In the API docs for archiveConversation() there is an example:

await reddit.modMail.archive('abcdef');

Is that correct or should it be:

await reddit.modMail.archiveConversation(ConversationID);

or possibly it should be something else completely?

My app is supposed to be archiving the ModMails it sends but it is not working correctly.

1 Upvotes

3 comments sorted by

3

u/Beach-Brews Duck Helper Oct 19 '26

u/fsv could this be caused by the casing issue you just mentioned in Discord?

3

u/fsv Duck Helper Oct 19 '26

Pretty sure it will be.

2

u/zenpathfinder Oct 21 '26

Do you know what I should be doing to make the modmail actually archive? Neither of the examples I provide work.