From bf9cb99c3c87dd4d0d2fe88fbdee63325ad64ae9 Mon Sep 17 00:00:00 2001 From: Ollie <69084614+olijeffers0n@users.noreply.github.com> Date: Thu, 3 Aug 2023 21:08:58 +0100 Subject: [PATCH] Support Emojis --- rustplus/__init__.py | 2 +- rustplus/utils/__init__.py | 1 + rustplus/utils/emojis.py | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 rustplus/utils/emojis.py diff --git a/rustplus/__init__.py b/rustplus/__init__.py index 8acaa60..1825ca9 100644 --- a/rustplus/__init__.py +++ b/rustplus/__init__.py @@ -22,5 +22,5 @@ __name__ = "rustplus" __author__ = "olijeffers0n" -__version__ = "5.6.9" +__version__ = "5.6.10" __support__ = "Discord: https://discord.gg/nQqJe8qvP8" diff --git a/rustplus/utils/__init__.py b/rustplus/utils/__init__.py index 36cd83a..f0acb2b 100644 --- a/rustplus/utils/__init__.py +++ b/rustplus/utils/__init__.py @@ -3,3 +3,4 @@ from .grab_items import translate_id_to_stack from .server_id import ServerID from .yielding_event import YieldingEvent +from .emojis import Emoji diff --git a/rustplus/utils/emojis.py b/rustplus/utils/emojis.py new file mode 100644 index 0000000..cdb55c8 --- /dev/null +++ b/rustplus/utils/emojis.py @@ -0,0 +1,31 @@ +from enum import Enum + + +class Emoji(Enum): + ANGRY = ":angry+0:" + COFFEE_CAN = ":coffeecan+0:" + EYEBROW = ":eyebrow+0:" + FUNNY = ":funny+0:" + HAPPY = ":happy+0:" + LAUGH = ":laugh+0:" + LOVE = ":love+0:" + MASK = ":mask+0:" + NERVOUS = ":nervous+0:" + NEUTRAL = ":neutral+0:" + HEART_ROCK = ":heartrock+0:" + SMILE_CRY = ":smilecry+0:" + COOL = ":cool+0:" + LIGHT = ":light+0:" + WORRIED = ":worried+0:" + HEART = ":heart:" + SKULL = ":skull:" + EYES = ":eyes:" + DANCE = ":dance:" + EXCLAMATION = ":exclamation:" + TRUMPET = ":trumpet:" + WAVE = ":wave:" + YELLOW_PIN = ":yellowpin:" + SCIENTIST = ":scientist+0:" + + def __str__(self): + return self.value