Git Product home page Git Product logo

discord-select-menu-bug-20220614's Introduction

discord-select-menu-bug

Bot to assist with reproducing a visual bug in the Discord Android client.

Bug

On Android, when a bot edits a message with a new select menu, instead of displaying the placeholder value, the last selected value from the previous select menu is displayed.

To reproduce:

  1. Run the bot per instructions in the section below.
  2. Type test. The bot will send a select menu.
  3. Choose any option in the select menu. The bot will replace the select menu with a button.
  4. Click the button. The bot will replace the button with a new select menu.
  5. Observe that the new select menu displays the selection from the last select menu instead of the placeholder, even though the selection from the last select menu is not an option in the new select menu.

Actual behavior: The last selected option from the previous select menu is displayed.

Expected behavior: The placeholder is displayed in the new select menu.

Running

Prereqs

  • Java 11 or above.

  • application.properties in project root:

    bot.token=<bot token>
    

Using script

./run

Manually

./mvnw clean install
./mvnw exec:java -Dexec.mainClass="org.gerbil.discord.bug.Main" -Dconfig.file=application.properties

On Windows

mvnw.cmd clean install
mvnw.cmd exec:java -Dexec.mainClass="org.gerbil.discord.bug.Main" -Dconfig.file=application.properties

discord-select-menu-bug-20220614's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.