Skip to content

Webhook test #12

@FishingHacks

Description

@FishingHacks

Add a button or something alike on the dev panel to test out the webhook. As part of this, there should also be a way to detect fake votes (iex. by adding a test field to the user object or by setting the id field to "0", not recommended tho, as it would be for sure better to just return the user that issued the fake-vote in order to test functionality like avatar display).

Example Test Response:

{
  user: {
    id: '123456789101112131',
    username: 'User',
    discriminator: '0000',
    test: true,
  },
  bot: {
    id: '123456789101112131',
    votes: ['2000-01-01T00:00:00.000Z'],
  }
}

Real Response:

{
  user: {
    id: '123456789101112131',
    username: 'User',
    discriminator: '0000'
  },
  bot: {
    id: '123456789101112131',
    votes: [
      '2021-08-03T10:27:10.330Z',
      ...,
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions