These values are gained from on_member_update event and more specifically the after state. This means that user that makes any changes to their member status (nickname, status, game name or type) prompts a new unnecessary message as long as the after state passes the checks from prior list.
Try check before.game -object
1.1 If it has value. Great!
1.2 It doesn't have value and goes to exception
1.2.1 Set before.game.type to 0 (other other not 1 value)
2.1 Check that before.game.type is not 1
2.2 Check that after.game.type is 1
Currently bot checks for following statuses:
These values are gained from on_member_update event and more specifically the after state. This means that user that makes any changes to their member status (nickname, status, game name or type) prompts a new unnecessary message as long as the after state passes the checks from prior list.