summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-05 19:50:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-05 20:02:34 +1100
commitd8b3e95942d8217c0882b8cc8807f9b8e39d3eb0 (patch)
treec669e501c1db3c373d8b6ece0a750548c458f9a4 /src/util
parentFix private messages being returned when no channel_id provided in search (diff)
downloadserver-d8b3e95942d8217c0882b8cc8807f9b8e39d3eb0.tar.xz
Only allow specific server features to be edited
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util/Constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts
index 46cf2e4f..b84a8178 100644
--- a/src/util/util/Constants.ts
+++ b/src/util/util/Constants.ts
@@ -1043,6 +1043,11 @@ export const FosscordApiErrors = {
 		45006,
 		501,
 	),
+	FEATURE_IS_IMMUTABLE : new ApiError(
+		"The feature ({}) cannot be edited.",
+		45007,
+		403,
+	),
 	MISSING_RIGHTS: new ApiError(
 		"You lack rights to perform that action ({})",
 		50013,