Maknz\Slack\Client::getLinkNames PHP Method

getLinkNames() public method

Get whether messages sent will have names (like @regan) will be converted into links.
public getLinkNames ( ) : boolean
return boolean
    public function getLinkNames()
    {
        return $this->link_names;
    }

Usage Example

Example #1
0
 public function testInstantiationWithDefaults()
 {
     $defaults = ['channel' => '#random', 'username' => 'Archer', 'icon' => ':ghost:', 'link_names' => true, 'unfurl_links' => true, 'unfurl_media' => false, 'allow_markdown' => false, 'markdown_in_attachments' => ['text']];
     $client = new Client('http://fake.endpoint', $defaults);
     $this->assertSame($defaults['channel'], $client->getDefaultChannel());
     $this->assertSame($defaults['username'], $client->getDefaultUsername());
     $this->assertSame($defaults['icon'], $client->getDefaultIcon());
     $this->assertTrue($client->getLinkNames());
     $this->assertTrue($client->getUnfurlLinks());
     $this->assertFalse($client->getUnfurlMedia());
     $this->assertSame($defaults['allow_markdown'], $client->getAllowMarkdown());
     $this->assertSame($defaults['markdown_in_attachments'], $client->getMarkdownInAttachments());
 }
All Usage Examples Of Maknz\Slack\Client::getLinkNames