Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Where can i find more info on the client.say method? #259

@dsusviela

Description

@dsusviela

Hey evreyone, i'm using this gem for a personal project, nothing too fancy.

I'm stuck trying to get the bot send a message to the general channel when a "broadcast" command is invoked. This is my code snippet:

class Broadcast < SlackRubyBot::Commands::Base
  def self.call(client, data, _match)
    subs = Subscription.all()
    subs.each do |sub|
      client.say(channel: "#general", text: "<@#{sub.user_id}>")
    end
  end
end

But this doesn't seem to work. On the other hand if i simply put the channel id, it works like a charm. Any clues on what I'm doing wrong? Also, what other methods do i have access to with client? I didn't find anything in the readme.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions