mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +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:
@@ -88,8 +88,10 @@ export async function handleDiscordPayload(
|
||||
}
|
||||
}
|
||||
|
||||
export async function requestAllMembers(
|
||||
export function requestAllMembers(
|
||||
guild: Guild,
|
||||
// TODO: The parameter "resolve" should have a "stronger" type.
|
||||
// deno-lint-ignore ban-types
|
||||
resolve: Function,
|
||||
options?: FetchMembersOptions,
|
||||
) {
|
||||
@@ -98,7 +100,11 @@ export async function requestAllMembers(
|
||||
return requestGuildMembers(guild.id, guild.shardID, nonce, options);
|
||||
}
|
||||
|
||||
export function sendGatewayCommand(type: "EDIT_BOTS_STATUS", payload: object) {
|
||||
export function sendGatewayCommand(
|
||||
type: "EDIT_BOTS_STATUS",
|
||||
// deno-lint-ignore no-explicit-any
|
||||
payload: Record<string, any>,
|
||||
) {
|
||||
if (type === "EDIT_BOTS_STATUS") {
|
||||
botGatewayStatusRequest(payload as BotStatusRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user