summaryrefslogtreecommitdiff
path: root/src/emote.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/emote.php')
-rw-r--r--src/emote.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emote.php b/src/emote.php
index d00886a..2fd30c0 100644
--- a/src/emote.php
+++ b/src/emote.php
@@ -6,14 +6,16 @@ class Emote
public string $ext;
public string|null $uploaded_by;
public int $created_at;
+ public bool $is_in_user_set;
- function __construct($id, $code, $ext, $created_at, $uploaded_by)
+ function __construct($id, $code, $ext, $created_at, $uploaded_by, $is_in_user_set)
{
$this->id = $id;
$this->code = $code;
$this->ext = $ext;
$this->created_at = $created_at;
$this->uploaded_by = $uploaded_by;
+ $this->is_in_user_set = $is_in_user_set;
}
function get_id()
@@ -40,4 +42,9 @@ class Emote
{
return $this->uploaded_by;
}
+
+ function is_added_by_user()
+ {
+ return $this->is_in_user_set;
+ }
}