fix: restore auth fallback ordering

This commit is contained in:
Peter Steinberger
2026-01-06 01:38:09 +00:00
parent 6f541d6304
commit 87f4efda8d
5 changed files with 59 additions and 8 deletions

View File

@@ -108,7 +108,9 @@ describe("sendMessageDiscord", () => {
it("adds missing permission hints on 50013", async () => {
const { rest, postMock, getMock } = makeRest();
const perms = new PermissionsBitField([PermissionsBitField.Flags.ViewChannel]);
const perms = new PermissionsBitField([
PermissionsBitField.Flags.ViewChannel,
]);
const apiError = Object.assign(new Error("Missing Permissions"), {
code: 50013,
status: 403,