lint errors/typos
This commit is contained in:
parent
fe6930c065
commit
43d013b62d
5 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@ export class ChannelsManager extends BaseManager<ChannelPayload, Channel> {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Fetchs a Channel by ID, cache it, resolve it */
|
/** Fetches a Channel by ID, cache it, resolve it */
|
||||||
async fetch<T = Channel>(id: string): Promise<T> {
|
async fetch<T = Channel>(id: string): Promise<T> {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
this.client.rest
|
this.client.rest
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class EmojisManager extends BaseManager<EmojiPayload, Emoji> {
|
||||||
return emoji
|
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<Emoji> {
|
async fetch(guildID: string, id: string): Promise<Emoji> {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
this.client.rest
|
this.client.rest
|
||||||
|
|
|
@ -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<GuildIntegration[]> {
|
async fetchIntegrations(): Promise<GuildIntegration[]> {
|
||||||
const raw = (await this.client.rest.get(
|
const raw = (await this.client.rest.get(
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { UserPayload } from './user.ts'
|
||||||
/**
|
/**
|
||||||
* Gateway OPcodes from Discord docs.
|
* 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,
|
DISPATCH = 0,
|
||||||
HEARTBEAT = 1,
|
HEARTBEAT = 1,
|
||||||
IDENTIFY = 2,
|
IDENTIFY = 2,
|
||||||
|
|
|
@ -136,7 +136,7 @@ export interface GuildIntegrationPayload {
|
||||||
expire_grace_period?: number
|
expire_grace_period?: number
|
||||||
user?: UserPayload
|
user?: UserPayload
|
||||||
account: IntegrationAccountPayload
|
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
|
subscriber_count?: number
|
||||||
revoked?: boolean
|
revoked?: boolean
|
||||||
application?: ApplicationPayload
|
application?: ApplicationPayload
|
||||||
|
|
Loading…
Reference in a new issue