Compare commits
2
Commits
v1.0.0
...
7adb8dc386
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7adb8dc386 | ||
|
|
d2bfb949ee |
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "dpy_appemojis"
|
name = "dpy_appemojis"
|
||||||
version = "1.0.0"
|
version = "1.1.0"
|
||||||
description = "Mirror a project folder onto the bot's application emojis for discord.py — folder is the source of truth. Config-free, injectable, installable."
|
description = "Mirror a project folder onto the bot's application emojis for discord.py — folder is the source of truth. Config-free, injectable, installable."
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
@@ -175,7 +175,8 @@ class DPYAppEmojis:
|
|||||||
try:
|
try:
|
||||||
emoji = await self._client.create_application_emoji(name=name, image=image)
|
emoji = await self._client.create_application_emoji(name=name, image=image)
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
log.error("dpy_appemojis: creating application emoji '%s' failed", name)
|
# raise XOR log: this re-raises, so the exception carries the failure to the
|
||||||
|
# caller (who decides fatal-vs-routine) - no error log here would double-report.
|
||||||
raise
|
raise
|
||||||
current[name] = emoji
|
current[name] = emoji
|
||||||
result.created.append(name)
|
result.created.append(name)
|
||||||
@@ -185,7 +186,7 @@ class DPYAppEmojis:
|
|||||||
try:
|
try:
|
||||||
await emoji.delete()
|
await emoji.delete()
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
log.error("dpy_appemojis: deleting application emoji '%s' failed", name)
|
# raise XOR log: re-raises, so the exception is the signal - no log here.
|
||||||
raise
|
raise
|
||||||
current.pop(name, None)
|
current.pop(name, None)
|
||||||
result.deleted.append(name)
|
result.deleted.append(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user