From 92ea7a326b4430f3dbeb94f150df680e432f5ddf Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 21 Apr 2025 17:33:46 +0500 Subject: feat: check emote if it has been already added --- src/emote.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/emote.php') 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; + } } -- cgit v1.2.3