SnowTransfer error handling is no longer pathetic

This commit is contained in:
Cadence Ember
2026-08-17 17:30:06 +12:00
parent c0c6419bd1
commit 1dcd5620c4
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ const commands = [{
try {
var invite = await discord.snow.channel.createChannelInvite(channelID)
} catch (e) {
if (e.message === `{"message": "Missing Permissions", "code": 50013}`) {
if (e.message === "Missing Permissions") {
return api.sendEvent(event.room_id, "m.room.message", {
...ctx,
msgtype: "m.text",