Discord Messages

The Member Messages by IDs endpoint allows you to fetch messages sent by specific members in your Discord server using GraphQL.

GraphQL Query

query MemberMessages($pageSize: Int!, $page: Int!, $guildId: String!, $channelIds: [String!], $ids: [String!], $startDate: String!, $endDate: String!) {
  memberMessagesByIds(pageSize: $pageSize, page: $page, guildId: $guildId, channelIds: $channelIds, ids: $ids, startDate: $startDate, endDate: $endDate) {
    totalMessages
    messagesList {
      id
      content
      createdAt
      editedAt
      channelId
      guildId
      authorId
      tags
      type
      authorName
      authorDiscriminator
      authorAvatarUrl
      authorNickname
      channelName
      sentimentScore
      reactions
      isInThread
    }
  }
}

Variables

Response

Examples

POST https://dashboard.withblaze.app/api/graphql-api

page*

1

Page number should start from 1

pageSize*

10

Max Limit - 100

guildId*

GUILD-ID

Guild ID of the discord server from which you want to query the data

startDate*

START-DATE

Start date from which message need to be filtered

endDate*

END-DATE

End date from which messages need to be filtered

ids

['ID-1', 'ID-2']

Discord ids of the members for whom the messages need to be fetched

channelIds

['CHANNEL-ID-1', 'CHANNEL-ID-2']

Discord channel ids of the channels for which the messages need to be fetched

Input
Output

Last updated

Was this helpful?