Stefouch / sebedius-yearzero-discord-bot

A bot companion for running Year Zero roleplaying games over Discord.
Other
40 stars 11 forks source link

Reaction-menu doesn't reset in private message in attack #110

Closed mprangenberg closed 3 years ago

mprangenberg commented 3 years ago

Describe the Bug

When using the -private parameter for attacks the reaction menu doesn't reset the counters to 1.

Severity

Context

Any !attack with the -private parameter.

To Reproduce

Steps to reproduce the behavior:

  1. Start an attack with !attack myz anmesiac -private
  2. Click on the sword reaction to roll an attack.
  3. The attack is rolled and the reaction stays at 2.
  4. If you click it again, it's returned to 1 (as usual discord behavior).
  5. On next click it goes to 2 again and rolls another attack.

Expected Behavior

The reaction should be reset like it is in a normal text channel.

Screenshots

image

mprangenberg commented 3 years ago

Nevermind, i just saw the reason:

            // Then removes that added emoji (not possible in DM).
            if (!this.isDM) {