From 9e0268058f9331f7322983e042cc29a237df6590 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 10:50:12 +0000 Subject: [PATCH] chore(server): drop unnecessary int64 conversion in perms test Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01LwtnpHAoSFr1ZibQgQkNQK --- Server/admin/handlers_channel_perms_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/admin/handlers_channel_perms_test.go b/Server/admin/handlers_channel_perms_test.go index 4af4543f..dc48095d 100644 --- a/Server/admin/handlers_channel_perms_test.go +++ b/Server/admin/handlers_channel_perms_test.go @@ -155,7 +155,7 @@ func TestPutChannelPermission_MasksUnknownBits(t *testing.T) { } // 0x4 and 0x8 are undefined bits — they must be dropped. - body := map[string]any{"allow": 0x4 | int64(permissions.SendMessages), "deny": 0x8} + body := map[string]any{"allow": 0x4 | permissions.SendMessages, "deny": 0x8} w := doRequest(t, handler, http.MethodPut, "/channels/"+itoa(chID)+"/permissions/3", token, body) if w.Code != http.StatusOK {