Releases: Elitezen/discord-trivia
3.0.2
3.0.1
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
2.0.3
2.0.0
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 toTriviaGame.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()
andCustomQuestionBuilder.Multiple()
classes -
This package now "echoes"
CategoryNames
,QuestionDifficulties
, andQuestionTypes
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