Unkown -> unkown (typo fix)

This commit is contained in:
Rory& 2025-10-03 20:53:24 +02:00
parent 5295a0b563
commit 625df4e314
4 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ router.patch(
}),
async (req: Request, res: Response) => {
const body = req.body as UserSettingsSchema;
if (body.locale === "en") body.locale = "en-US"; // fix discord client crash on unkown locale
if (body.locale === "en") body.locale = "en-US"; // fix discord client crash on unknown locale
const user = await User.findOneOrFail({
where: { id: req.user_id, bot: false },

View File

@ -82,7 +82,7 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
const OPCodeHandler = OPCodeHandlers[data.op];
if (!OPCodeHandler) {
console.error("[Gateway] Unkown opcode " + data.op);
console.error("[Gateway] Unknown opcode " + data.op);
// TODO: if all opcodes are implemented comment this out:
// this.close(CLOSECODES.Unknown_opcode);
return;

View File

@ -102,7 +102,7 @@ export function instanceOf(
Object.keys(type).map((x) => (x.startsWith(OPTIONAL_PREFIX) ? x.slice(OPTIONAL_PREFIX.length) : x))
);
if (diff.length) throw `Unkown key ${diff}`;
if (diff.length) throw `Unknown key ${diff}`;
return Object.keys(type).every((key) => {
let newKey = key;

View File

@ -36,7 +36,7 @@ export async function onMessage(this: WebRtcWebSocket, buffer: Buffer) {
const OPCodeHandler = OPCodeHandlers[data.op];
if (!OPCodeHandler) {
console.error("[WebRTC] Unkown opcode " + VoiceOPCodes[data.op]);
console.error("[WebRTC] Unknown opcode " + VoiceOPCodes[data.op]);
// TODO: if all opcodes are implemented comment this out:
// this.close(CloseCodes.Unknown_opcode);
return;