From 43d013b62d606f0aa913de63518b310c97e699c4 Mon Sep 17 00:00:00 2001 From: noamboy2006 Date: Sat, 5 Dec 2020 11:39:37 +0900 Subject: [PATCH] lint errors/typos --- src/managers/channels.ts | 2 +- src/managers/emojis.ts | 2 +- src/structures/guild.ts | 2 +- src/types/gateway.ts | 2 +- src/types/guild.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/managers/channels.ts b/src/managers/channels.ts index cc821f3..9fd9231 100644 --- a/src/managers/channels.ts +++ b/src/managers/channels.ts @@ -43,7 +43,7 @@ export class ChannelsManager extends BaseManager { return result } - /** Fetchs a Channel by ID, cache it, resolve it */ + /** Fetches a Channel by ID, cache it, resolve it */ async fetch(id: string): Promise { return await new Promise((resolve, reject) => { this.client.rest diff --git a/src/managers/emojis.ts b/src/managers/emojis.ts index 8fb1ac3..53bcdc6 100644 --- a/src/managers/emojis.ts +++ b/src/managers/emojis.ts @@ -20,7 +20,7 @@ export class EmojisManager extends BaseManager { return emoji } - /** Fetchs an Emoji by Guild ID and Emoji ID, cache it and resolve it */ + /** Fetches an Emoji by Guild ID and Emoji ID, cache it and resolve it */ async fetch(guildID: string, id: string): Promise { return await new Promise((resolve, reject) => { this.client.rest diff --git a/src/structures/guild.ts b/src/structures/guild.ts index 749984c..730c143 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -288,7 +288,7 @@ export class Guild extends Base { } /** - * Fetchs Guild's Integrations (Webhooks, Bots, etc.) + * Fetches Guild's Integrations (Webhooks, Bots, etc.) */ async fetchIntegrations(): Promise { const raw = (await this.client.rest.get( diff --git a/src/types/gateway.ts b/src/types/gateway.ts index b4661cb..9d9bc29 100644 --- a/src/types/gateway.ts +++ b/src/types/gateway.ts @@ -16,7 +16,7 @@ import { UserPayload } from './user.ts' /** * Gateway OPcodes from Discord docs. */ -export enum GatewayOpcodes { //Opcode 5 is empty according to discord api docs. +export enum GatewayOpcodes { // Opcode 5 is empty according to discord api docs. DISPATCH = 0, HEARTBEAT = 1, IDENTIFY = 2, diff --git a/src/types/guild.ts b/src/types/guild.ts index f7fcc01..b2b7b68 100644 --- a/src/types/guild.ts +++ b/src/types/guild.ts @@ -136,7 +136,7 @@ export interface GuildIntegrationPayload { expire_grace_period?: number user?: UserPayload account: IntegrationAccountPayload - synced_at?: string // Actually a ISO Timestamp, but we parse in constructor' + synced_at?: string // Actually a ISO Timestamp, but we parse in constructor subscriber_count?: number revoked?: boolean application?: ApplicationPayload