Method: Discordrb::Message#chat_input_command?

Defined in:
lib/discordrb/data/message.rb

#chat_input_command?true, false

Whether or not this message was of type "CHAT_INPUT_COMMAND"

Returns:

  • (true, false)


379
380
381
# File 'lib/discordrb/data/message.rb', line 379

def chat_input_command?
  @type == 20
end