Commit from GitHub Actions (Lint)

This commit is contained in:
itohatweb
2021-05-07 14:52:41 +00:00
parent 0d50f7f842
commit 6e93dde344
+4 -4
View File
@@ -22,7 +22,7 @@ import { hasOwnProperty, snakelize } from "../../util/utils.ts";
export async function editChannel( export async function editChannel(
channelId: bigint, channelId: bigint,
options: ModifyChannel | ModifyThread, options: ModifyChannel | ModifyThread,
reason?: string reason?: string,
) { ) {
const channel = await cacheHandlers.get("channels", channelId); const channel = await cacheHandlers.get("channels", channelId);
@@ -57,7 +57,7 @@ export async function editChannel(
) { ) {
await requireOverwritePermissions( await requireOverwritePermissions(
channel.guildId, channel.guildId,
options.permissionOverwrites options.permissionOverwrites,
); );
} }
} }
@@ -93,7 +93,7 @@ export async function editChannel(
// deno-lint-ignore camelcase // deno-lint-ignore camelcase
permission_overwrites: hasOwnProperty<ModifyChannel>( permission_overwrites: hasOwnProperty<ModifyChannel>(
options, options,
"permissionOverwrites" "permissionOverwrites",
) )
? options.permissionOverwrites?.map((overwrite) => { ? options.permissionOverwrites?.map((overwrite) => {
return { return {
@@ -111,7 +111,7 @@ export async function editChannel(
{ {
...payload, ...payload,
reason, reason,
} },
); );
return await structures.createDiscordenoChannel(result); return await structures.createDiscordenoChannel(result);