diff options
| -rw-r--r-- | bot/constants.py | 2 | ||||
| -rw-r--r-- | bot/utils/messages.py | 6 | ||||
| -rw-r--r-- | config-default.yml | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index f341fb499..4737ce6a3 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -254,6 +254,8 @@ class Emojis(metaclass=YAMLGetter): status_idle: str status_dnd: str + trashcan: str + bullet: str new: str pencil: str diff --git a/bot/utils/messages.py b/bot/utils/messages.py index 549b33ca6..fe0b6b29f 100644 --- a/bot/utils/messages.py +++ b/bot/utils/messages.py @@ -15,7 +15,7 @@ MAX_SIZE = 1024 * 1024 * 8 # 8 Mebibytes async def wait_for_deletion( message: Message, user_ids: Sequence[Snowflake], - deletion_emojis: Sequence[str] = (Emojis.cross_mark,), + deletion_emojis: Sequence[str] = None, timeout: float = 60 * 5, attach_emojis: bool = True, client: Optional[Client] = None @@ -34,6 +34,10 @@ async def wait_for_deletion( bot = client or message.guild.me + if deletion_emojis is None: + default_emoji = bot.get_emoji(int(Emojis.trashcan)) or Emojis.cross_mark + deletion_emojis = (default_emoji,) + if attach_emojis: for emoji in deletion_emojis: await message.add_reaction(emoji) diff --git a/config-default.yml b/config-default.yml index 23dcbd44c..16842534d 100644 --- a/config-default.yml +++ b/config-default.yml @@ -32,6 +32,8 @@ style: status_dnd: "<:status_dnd:470326272082313216>" status_offline: "<:status_offline:470326266537705472>" + trashcan: "637136429717389331" + bullet: "\u2022" pencil: "\u270F" new: "\U0001F195" |