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

Webhook test #12

Open
FishingHacks opened this issue Dec 8, 2023 · 1 comment
Open

Webhook test #12

FishingHacks opened this issue Dec 8, 2023 · 1 comment

Comments

@FishingHacks
Copy link

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',
      ...,
    ]
  }
}
@FishingHacks
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
Status: Planned
Development

No branches or pull requests

1 participant