line |
true |
false |
branch |
43
|
0 |
1 |
if (scalar @_ > 1) { } |
51
|
1 |
0 |
if ($params{'url'}) { } |
|
0 |
0 |
elsif ($params{'id'} and $params{'token'}) { } |
52
|
1 |
0 |
if ($params{'url'} =~ m[discordapp\.com/api/webhooks/(\d+)/([^/?]+)]i) { } |
59
|
0 |
0 |
if ($params{'id'} =~ /^\d+$/ and $params{'token'} =~ m[^[^/?]+$]) { } |
74
|
0 |
1 |
if ($params{'timeout'}) |
75
|
0 |
1 |
if ($params{'verify_SSL'}) |
81
|
0 |
1 |
if ($params{'wait'}) |
97
|
0 |
0 |
if ($self->{'id'} ne $response->{'id'}) |
103
|
0 |
0 |
if ($self->{'token'} ne $response->{'token'}) |
111
|
0 |
0 |
if ($response->{'guild_id'}) { } |
132
|
0 |
0 |
if (not $response->{'success'}) { } |
|
0 |
0 |
elsif (not $response->{'content'}) { } |
159
|
0 |
0 |
if (scalar @_ > 1) { } |
166
|
0 |
0 |
unless ($params{'name'} or exists $params{'avatar'}) |
173
|
0 |
0 |
if ($params{'name'}) |
175
|
0 |
0 |
if (exists $params{'avatar'}) |
176
|
0 |
0 |
if ($params{'avatar'}) { } |
180
|
0 |
0 |
if (substr($params{'avatar'}, 0, 8) eq "\211PNG\r\n\cZ\n") { } |
|
0 |
0 |
elsif (substr($params{'avatar'}, 0, 2) eq "\377\330" and substr($params{'avatar'}, -2) eq "\377\331") { } |
|
0 |
0 |
elsif (substr($params{'avatar'}, 0, 4) eq 'GIF8') { } |
213
|
0 |
0 |
if (not $response->{'success'}) { } |
|
0 |
0 |
elsif (not $response->{'content'}) { } |
241
|
0 |
0 |
unless ($response->{'success'}) |
267
|
0 |
0 |
if (scalar @_ > 1) { } |
274
|
0 |
0 |
if ($params{'file'}) |
275
|
0 |
0 |
if ($params{'embed'}) |
278
|
0 |
0 |
if (not $params{'content'} || $params{'files'} || $params{'embeds'}) { } |
|
0 |
0 |
elsif ($params{'embeds'} and $params{'files'}) { } |
289
|
0 |
0 |
if ($params{'content'}) |
291
|
0 |
0 |
if ($params{'username'}) |
292
|
0 |
0 |
if ($params{'avatar_url'}) |
293
|
0 |
0 |
if ($params{'tts'}) |
297
|
0 |
0 |
if ($self->{'wait'}) |
301
|
0 |
0 |
if (not $params{'files'}) { } |
304
|
0 |
0 |
if ($params{'embeds'}) |
359
|
0 |
0 |
unless ($response->{'success'}) |
368
|
0 |
0 |
if ($response->{'content'}) |
376
|
0 |
0 |
if (scalar @_ > 1) { } |
386
|
0 |
0 |
if ($self->{'wait'}) |
390
|
0 |
0 |
unless ($response->{'success'}) |
409
|
0 |
0 |
unless ($params{'event'} and $params{'json'}) |
416
|
0 |
0 |
if ($self->{'wait'}) |
428
|
0 |
0 |
unless ($response->{'success'}) |