Skip to content

Releases: Elitezen/discord-trivia

3.0.2

25 Mar 19:15
Compare
Choose a tag to compare

3.0.2

  • Additional bug fixes to answer checking.

3.0.1

25 Mar 19:14
Compare
Choose a tag to compare

3.0.1

  • Fixed a bug which caused any non-first correct answers to be counted as incorrect.
  • Fixed a bug where games that timedout in queue were not deleted by the manager.
  • The GameEmbeds#leaderboardUpdate() function's parameters have changed to (leaderboard: Collection<string, Player>, lastQuestion: GameQuestion)

3.0.0

29 Feb 15:30
948ce9f
Compare
Choose a tag to compare
Merge pull request #25 from Elitezen/v3

V3

2.0.3

10 Jun 01:10
Compare
Choose a tag to compare
2.0.3 Bug Fix

2.0.0

23 Mar 00:42
Compare
Choose a tag to compare

2.0.0

  • Removed TriviaCommandBuilder as it's usage was verbose. I am waiting for Discord to allow implementation of select menus into modals to create a successor.

  • TriviaGame.start() has been renamed to TriviaGame.setup()

  • Configuration of a TriviaGame is now done through:

    • game.decorate(options: DecorationOptions)
    • game.setQuestionOptions(options: Omit<GameQuestionOptions, "customQuestions">)
    • game.setGameOptions(options: Partial<GameOptions>)
    • Option names containing "maximum" or "minimum" have been reduced to "max" and "min"
  • Adding custom questions is now done through game.setCustomQuestions(questions: ( CustomQuestion<QuestionTypes> | BooleanQuestion | MultipleChoiceQuestion )[])

  • Package now uses open-trivia-db 2.1.5 which has reverted back to node-fetch@2 to support NodeJS < 18

  • Editing the game's output messages can now be done through game.setGameTexts(options: Partial<GameOptions>)

  • Trivia games now automatically move on to the next step once the queue has filled up or everyone has answered

  • You can now edit the following using game.decorate():

    • Button styles
    • Embed thumbnail
  • Custom questions can now be created with the CustomQuestionBuilder.Boolean() and CustomQuestionBuilder.Multiple() classes

  • This package now "echoes" CategoryNames, QuestionDifficulties, and QuestionTypes from open-trivia-db for usage in discord-trivia

  • Trivia games no longer send a new message after every user interaction. Embeds will now update to reflect any new data

  • Updated to latest versions of discord.js, open-trivia-db, and discord-api-types

1.2.0

19 Jul 13:50
Compare
Choose a tag to compare

v14 Update