mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
chore(server): drop unnecessary int64 conversion in perms test
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwtnpHAoSFr1ZibQgQkNQK
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user