Skip to content
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

Fetch single message #56

Open
shantanuthatte opened this issue Nov 15, 2016 · 2 comments
Open

Fetch single message #56

shantanuthatte opened this issue Nov 15, 2016 · 2 comments

Comments

@shantanuthatte
Copy link

Discord API allows for fetching of a single message. See Get Channel Message.

However, this is not implemented in Discordie.

Maybe this can be implemented as ITextChannel.fetchMessage(messageId).

Example:

Method and URL:
GET https://discordapp.com/api/channels/223147496579999744/messages/248127708507114193

Headers:

  • Authorization: Bot <My Token>
  • User-Agent: DiscordBot (None, 0.0.01)
  • Content-Type: application/json

Response:

{
  "attachments": [],
  "tts": false,
  "embeds": [],
  "timestamp": "2016-11-15T16:50:55.698000+00:00",
  "mention_everyone": false,
  "id": "248127708507114193",
  "pinned": false,
  "edited_timestamp": null,
  "author": {
    "username": "Shantanu",
    "discriminator": "7372",
    "id": "210537673643444741",
    "avatar": "fd59a85912967b6b70a4dbad01f0ad72"
  },
  "mention_roles": [],
  "content": "test",
  "channel_id": "223147496579999744",
  "mentions": [],
  "type": 0
}
@Arzte
Copy link

Arzte commented Jan 28, 2017

I'm going to note here for anyone else wanting to use this feature that it is already in the lib on the dev branch.

@shantanuthatte
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants