-
Notifications
You must be signed in to change notification settings - Fork 237
/
Attachment.php
51 lines (47 loc) · 1.35 KB
/
Attachment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/*
* This file is a part of the DiscordPHP project.
*
* Copyright (c) 2015-present David Cole <david.cole1340@gmail.com>
*
* This file is subject to the MIT license that is bundled
* with this source code in the LICENSE.md file.
*/
namespace Discord\Parts\Channel;
use Discord\Parts\Part;
/**
* A message attachment.
*
* @link https://discord.com/developers/docs/resources/channel#attachment-object
*
* @since 7.0.0
*
* @property string $id Attachment ID.
* @property string $filename Name of file attached.
* @property string|null $description Description for the file.
* @property string|null $content_type The attachment's media type.
* @property int $size Size of file in bytes.
* @property string $url Source url of file.
* @property string $proxy_url A proxied url of file.
* @property ?int|null $height Height of file (if image).
* @property ?int|null $width Width of file (if image).
* @property bool|null $ephemeral Whether this attachment is ephemeral.
*/
class Attachment extends Part
{
/**
* {@inheritDoc}
*/
protected $fillable = [
'id',
'filename',
'description',
'content_type',
'size',
'url',
'proxy_url',
'height',
'width',
'ephemeral',
];
}