Sha256: 178dc9f8fc6e39ad5f7e665b603c39fab8298c1ae276e9c1e59c36d8d2bbaf63

Contents?: true

Size: 193 Bytes

Versions: 53

Compression:

Stored size: 193 Bytes

Contents

require "discorb"

client = Discorb::Client.new

client.slash("hello", "Greet for you") do |interaction|
  interaction.post("Hello!", ephemeral: true)
end

client.run(ENV["DISCORD_BOT_TOKEN"])

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
discorb-0.13.4 examples/commands/hello.rb
discorb-0.13.3 examples/commands/hello.rb
discorb-0.13.2 examples/commands/hello.rb
discorb-0.13.1 examples/commands/hello.rb
discorb-0.13.0 examples/commands/hello.rb
discorb-0.12.4 examples/commands/hello.rb
discorb-0.12.3 examples/commands/hello.rb
discorb-0.12.2 examples/commands/hello.rb
discorb-0.12.1 examples/commands/hello.rb
discorb-0.12.0 examples/commands/hello.rb
discorb-0.11.4 examples/commands/hello.rb
discorb-0.11.3 examples/commands/hello.rb
discorb-0.11.2 examples/commands/hello.rb
discorb-0.11.1 examples/commands/hello.rb
discorb-0.11.0 examples/commands/hello.rb
discorb-0.10.3 examples/commands/hello.rb
discorb-0.10.2 examples/commands/hello.rb
discorb-0.10.1 examples/commands/hello.rb
discorb-0.10.0 examples/commands/hello.rb
discorb-0.9.6 examples/commands/hello.rb