Skip to content

Slash commands not selected when typing on the first try #5601

Open
@tyhdefu

Description

@tyhdefu

Description

When you type a slash command quickly, especially after clicking on a different channel, discord does not recognise the slash command and doesn't enter the options as desired (Normally subsequent attempts in the same channel work). Furthermore, when you press enter and send the message, it sends it as a regular message, instead of submitting it as a slash command.

Steps to Reproduce

  1. Get a bot with a slash command and an argument (preferably a short one)
  2. Click on a different channel
  3. Type the command quickly
  4. Observe that discord

With these steps I am able to reproduce this 5 times in a row or more, but to reproduce, it is imperative to click a new channel each time.

Expected Behavior

When you type a slash command quickly, it finds the slash command regardless of whether you have previously typed the command in the channel before or not. Furthermore, when you press enter, it should then re-check whether you typed a command and enter it as a slash command instead of sending a message

Current Behavior

The slash command stays as normal message and is sent as such when pressing enter, meaning that the message is sent as a regular message.

Screenshots/Videos

Example of typing the slash command and it not registering
Gif: https://gyazo.com/e7e213d0a33ab77a6cec2faa3a484f85
Image:
image

Client and System Information

Stable 155407 (4d2682d)
Host 1.0.9007
Windows 10 64-Bit (10.0.19044)

I am using JDA

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions