[ ] Check if the Discord User who sent the command is linked to a duelist addresses (#5)
[ ] Check if the Challenge duelist_a and duelist_b addresses are linked to a Discord User Id (#5)
[ ] Add a tag to each user to the notifications, when linked
[ ] Create the my_duels command. Exactly like live_duels, but filters by duelist (duelist_a or duelist_b). Please do not to duplicate the whole command, create 2 entry points that generate the same result.
[ ] Check if the Discord User who sent the command is linked to a duelist address (#5)
[ ] If not, display a message explaining how to link (TBD), and exit
[ ] It must function exactly like the duels_by_duelist command (#2)
[ ] As duelist_address, use the player's duelist addresses linked to their Discord account
[ ] Input: state as a list of options from the ChallengeState enum, used to filter duels
When displaying a message with the same contents as other messages (my_duels and duels_by_duelist, my_turn and live_duels for example), extract the message-building part to a new function that can be called by both.
Depends on #2, #5
Tasks
duels_by_duelist
command (#2)duelist_a
andduelist_b
addresses are linked to a Discord User Id (#5)my_duels
command. Exactly likelive_duels
, but filters by duelist (duelist_a
orduelist_b
). Please do not to duplicate the whole command, create 2 entry points that generate the same result.duels_by_duelist
command (#2)duelist_address
, use the player's duelist addresses linked to their Discord accountstate
as a list of options from theChallengeState
enum, used to filter duelspage
(optional)The
ChallengeState
enum:Notes
my_duels
andduels_by_duelist
,my_turn
andlive_duels
for example), extract the message-building part to a new function that can be called by both.