| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Net::Async::Slack::Event::Shortcut; |
|
2
|
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
331662
|
use strict; |
|
|
3
|
|
|
|
|
9
|
|
|
|
3
|
|
|
|
|
129
|
|
|
4
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
|
3
|
|
|
|
|
5
|
|
|
|
3
|
|
|
|
|
258
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.015'; # VERSION |
|
7
|
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
583
|
use Net::Async::Slack::EventType; |
|
|
3
|
|
|
|
|
9
|
|
|
|
3
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Net::Async::Slack::Event::Shortcut - User selected a shortcut |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Example input data: |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
{ |
|
19
|
|
|
|
|
|
|
"action_ts": "1678943959.921154", |
|
20
|
|
|
|
|
|
|
"callback_id": "some_request", |
|
21
|
|
|
|
|
|
|
"enterprise": null, |
|
22
|
|
|
|
|
|
|
"is_enterprise_install": false, |
|
23
|
|
|
|
|
|
|
"team": { |
|
24
|
|
|
|
|
|
|
"domain": "example", |
|
25
|
|
|
|
|
|
|
"id => "T02038412", |
|
26
|
|
|
|
|
|
|
}, |
|
27
|
|
|
|
|
|
|
"token": "I...", |
|
28
|
|
|
|
|
|
|
"trigger_id" => "2048348233713.13045238123.402bb8adc722834fe8a8a8ed7a82d1ac", |
|
29
|
|
|
|
|
|
|
"type": "shortcut", |
|
30
|
|
|
|
|
|
|
"user": { |
|
31
|
|
|
|
|
|
|
"id": "U1WC7C9E0", |
|
32
|
|
|
|
|
|
|
"team_id": "T0D277EE5", |
|
33
|
|
|
|
|
|
|
"username": "tom" |
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
|
39
|
|
|
|
|
|
|
|
|
40
|
6
|
|
|
6
|
0
|
24
|
sub type { 'shortcut' } |
|
41
|
0
|
|
|
0
|
0
|
|
sub callback_id { shift->{callback_id} } |
|
42
|
0
|
|
|
0
|
0
|
|
sub trigger_id { shift->{trigger_id} } |
|
43
|
0
|
|
|
0
|
0
|
|
sub action_ts { shift->{action_ts} } |
|
44
|
0
|
|
|
0
|
0
|
|
sub token { shift->{token} } |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |