summaryrefslogtreecommitdiff
path: root/src/emote.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-19 20:48:00 +0500
committerilotterytea <iltsu@alright.party>2025-04-19 20:48:00 +0500
commita7e961bcd2f1e8d98f2ffbb5ff37c2e7f9b981d1 (patch)
treee5279f13563c7f923745990f48eedd89b396ae8d /src/emote.php
parent7a66de9852d4683a7b5cdcedb8e88cfdc73f4b56 (diff)
feat: show emotes
Diffstat (limited to 'src/emote.php')
-rw-r--r--src/emote.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/emote.php b/src/emote.php
new file mode 100644
index 0000000..5d39e42
--- /dev/null
+++ b/src/emote.php
@@ -0,0 +1,36 @@
+<?php
+class Emote
+{
+ public string $id;
+ public string $code;
+ public string $ext;
+ public int $created_at;
+
+ function __construct($id, $code, $ext, $created_at)
+ {
+ $this->id = $id;
+ $this->code = $code;
+ $this->ext = $ext;
+ $this->created_at = $created_at;
+ }
+
+ function get_id()
+ {
+ return $this->id;
+ }
+
+ function get_code()
+ {
+ return $this->code;
+ }
+
+ function get_ext()
+ {
+ return $this->ext;
+ }
+
+ function get_created_at()
+ {
+ return $this->created_at;
+ }
+}