This commit is contained in:
ITOH
2021-05-29 21:26:53 +02:00
parent 6e77bad12e
commit 8e0c4e2492
6 changed files with 18 additions and 11 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: ''
assignees: ""
---
**Describe the bug** A clear and concise description of what the bug is.
+2 -3
View File
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: feat
assignees: ''
assignees: ""
---
**Is your feature request related to a problem? Please describe.** A clear and
+6 -1
View File
@@ -1,6 +1,11 @@
import { verify } from "./deps.ts";
export function verifySignature({ publicKey, signature, timestamp, body }: VerifySignatureOptions): {
export function verifySignature({
publicKey,
signature,
timestamp,
body,
}: VerifySignatureOptions): {
isValid: boolean;
body: string;
} {
+1 -1
View File
@@ -62,7 +62,7 @@ export async function runMethod<T = any>(
reject(errorStack);
},
respond: (data: { status: number; body?: string }) =>
resolve(data.status !== 204 ? camelize<T>(JSON.parse(data.body ?? "{}")) : (undefined as unknown as T)),
resolve(data.status !== 204 ? camelize<T>(JSON.parse(data.body ?? "{}")) : ((undefined as unknown) as T)),
},
{
bucketId,
+3 -1
View File
@@ -230,7 +230,9 @@ export interface DiscordenoMember extends Omit<User, "discriminator" | "id" | "a
/** Get the nickname or the username if no nickname */
name(guildId: bigint): string;
/** Get the guild member object for the specified guild */
guildMember(guildId: bigint):
guildMember(
guildId: bigint
):
| (Omit<GuildMember, "joinedAt" | "premiumSince" | "roles"> & {
joinedAt?: number;
premiumSince?: number;
+4 -2
View File
@@ -24,8 +24,10 @@ async function startQueue() {
while (guildMemberQueue.size) {
eventHandlers.debug?.("loop", "Running whille loop in cache_members file.");
const [guildId, queue]: [bigint, { members: GuildMemberWithUser[]; resolve: (value?: unknown) => void }] =
guildMemberQueue.entries().next().value;
const [guildId, queue]: [
bigint,
{ members: GuildMemberWithUser[]; resolve: (value?: unknown) => void }
] = guildMemberQueue.entries().next().value;
await Promise.allSettled([
queue.members.map(async (member) => {