This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
How should we structure private messages? #20
Unanswered
thislooksfun
asked this question in
Q&A
Replies: 1 comment
-
@OmgImAlexis You've put a lot of good thought into ways to improve snoots so far. What are your thoughts on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In snoowrap everything is a top-level method of the main
snoowrap
class. In snoots I'm trying to namespace the interactions to make it more readable and maintainable, and to avoid cluttering up the docs too much. So far this has been easy: to interact with comments you useCommentControls
exposed viaclient.comments
. Same for posts and subreddits. However I'm having trouble structuring interactions private messages. My first thought was to usecontrols.inbox
, which works nicely for getting (un)read messages and marking them (un)read, but it feels weird to have a function to send a private message inside the inbox controls.The issue is that I need to support at least the following:
The ideas I've had so far:
client.inbox
(type:InboxControls
)client.outbox
and everything else intoclient.inbox
client.privateMessages
(type:PrivateMessageControls
)I'm personally leaning towards option 3 at the moment, but I'm not really happy with any of them. I'd love to hear your feedback.
Beta Was this translation helpful? Give feedback.
All reactions