mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
chore: setup "deno lint" (#331)
* chore: setup "deno lint" * ci(lint): add --unstable flat to lint script * lint * lint * refactor: destructure assignment for Message#guildID * chore: remove TODO comment * refactor: remove redundant async * chore: switch to Deno stable vscode ext * chore: remove ignore comments * chore: remove ignore comments * chore: remove @ts-ignore comment * fixes * fixes * chore: remove deno-lint-ignore comment * chore: add index signature
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { cacheHandlers } from "../api/controllers/cache.ts";
|
||||
import { Guild, Role } from "../api/structures/structures.ts";
|
||||
import { Guild, Role } from "../api/structures/mod.ts";
|
||||
import { botID } from "../bot.ts";
|
||||
import { Permission, Permissions, RawOverwrite } from "../types/mod.ts";
|
||||
|
||||
@@ -115,7 +115,7 @@ export async function hasChannelPermissions(
|
||||
|
||||
let memberOverwrite: RawOverwrite | undefined;
|
||||
let everyoneOverwrite: RawOverwrite | undefined;
|
||||
let rolesOverwrites: RawOverwrite[] = [];
|
||||
const rolesOverwrites: RawOverwrite[] = [];
|
||||
|
||||
for (const overwrite of channel.permissionOverwrites || []) {
|
||||
// If the overwrite on this channel is specific to this member
|
||||
|
||||
Reference in New Issue
Block a user