treehouses message discord [servers|channels|read|send] new subcommands (fixes #2152)#2151
treehouses message discord [servers|channels|read|send] new subcommands (fixes #2152)#2151
treehouses message discord [servers|channels|read|send] new subcommands (fixes #2152)#2151Conversation
|
JLKwong
left a comment
There was a problem hiding this comment.
All new features work. I left comments on possible improvements.
JLKwong
left a comment
There was a problem hiding this comment.
Need to add new subcommands to:
_treehouses
README.md
help.sh
message.sh (message_help)
|
|
I will need to check up on the documentation to see the limitations on how far back the message history goes. |
I'm holding off on this until @dogi decides if he wants to use the |
treehouses message discord [servers|channels|read|send] new subcommandstreehouses message discord [servers|channels|read|send] new subcommands (fixes ##2152)
treehouses message discord [servers|channels|read|send] new subcommands (fixes ##2152)treehouses message discord [servers|channels|read|send] new subcommands (fixes #2152)
@JLKwong looked at the documentation and I believe it defaults to 50 messages. |
|
|
JLKwong
left a comment
There was a problem hiding this comment.
I left recommendations based on testing.
|
@rjpadilla It seems that the Discord authorization token expires after a while. I've been running |





















New
treehouses message discordfeaturesFour new subcommands for
treehouse message discord:servers- list all servers the user is inchannels- list all channels in the chosen server by the userread- read all messages in the chosen server and channelsend- send a message in the chosen server and channelHow to use
In the Discord Web Client, type
ctrl+shift+ito pull up the browser's Developer Tools.Head to the Network tab and filter the url with
/api(you may need to reload the page).Click on any of the requests and in the headers windows on the right, copy the Authorization's value.
This value will be your API token.
Add your apitoken with the command
treehouses message discord authorize <apitoken>