Merge branch 'main' into main

This commit is contained in:
Helloyunho 2020-11-01 20:34:10 +09:00 committed by GitHub
commit c3c9181133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 51 additions and 51 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
src/.DS_Store vendored

Binary file not shown.

View file

@ -1,5 +1,5 @@
import { GatewayEventHandler } from '../index.ts'
import { GatewayEvents } from '../../types/gatewayTypes.ts'
import { GatewayEvents } from '../../types/gateway.ts'
import { channelCreate } from './channelCreate.ts'
import { channelDelete } from './channelDelete.ts'
import { channelUpdate } from './channelUpdate.ts'

View file

@ -1,5 +1,5 @@
import { User } from '../../structures/user.ts'
import { GuildPayload } from '../../types/guildTypes.ts'
import { GuildPayload } from '../../types/guild.ts'
import { Gateway, GatewayEventHandler } from '../index.ts'
export const ready: GatewayEventHandler = async (gateway: Gateway, d: any) => {

View file

@ -1,5 +1,5 @@
import { User } from '../structures/user.ts'
import { GatewayIntents } from '../types/gatewayTypes.ts'
import { GatewayIntents } from '../types/gateway.ts'
import { Gateway } from '../gateway/index.ts'
import { RESTManager } from './rest.ts'
import EventEmitter from 'https://deno.land/std@0.74.0/node/events.ts'

View file

@ -1,4 +1,4 @@
import { ImageFormats, ImageSize } from '../types/cdnTypes.ts'
import { ImageFormats, ImageSize } from '../types/cdn.ts'
export const ImageURL = (
url: string,

View file

@ -1,6 +1,6 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { ChannelPayload, ChannelTypes } from '../types/channelTypes.ts'
import { ChannelPayload, ChannelTypes } from '../types/channel.ts'
import { Base } from './base.ts'
export class Channel extends Base {

View file

@ -1,7 +1,7 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { DMChannelPayload } from '../types/channelTypes.ts'
import { UserPayload } from '../types/userTypes.ts'
import { DMChannelPayload } from '../types/channel.ts'
import { UserPayload } from '../types/user.ts'
import { TextChannel } from './textChannel.ts'
export class DMChannel extends TextChannel {

View file

@ -8,7 +8,7 @@ import {
EmbedThumbnail,
EmbedTypes,
EmbedVideo
} from '../types/channelTypes.ts'
} from '../types/channel.ts'
export class Embed {
title?: string

View file

@ -1,5 +1,5 @@
import { Client } from '../models/client.ts'
import { EmojiPayload } from '../types/emojiTypes.ts'
import { EmojiPayload } from '../types/emoji.ts'
import { USER } from '../types/endpoint.ts'
import { Base } from './base.ts'
import { User } from './user.ts'

View file

@ -1,6 +1,6 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { GroupDMChannelPayload } from '../types/channelTypes.ts'
import { GroupDMChannelPayload } from '../types/channel.ts'
import { Channel } from './channel.ts'
export class GroupDMChannel extends Channel {

View file

@ -1,6 +1,6 @@
import { Client } from '../models/client.ts'
import { GuildFeatures, GuildPayload } from '../types/guildTypes.ts'
import { PresenceUpdatePayload } from '../types/presenceTypes.ts'
import { GuildFeatures, GuildPayload } from '../types/guild.ts'
import { PresenceUpdatePayload } from '../types/presence.ts'
import { Base } from './base.ts'
import { Channel } from './channel.ts'
import { Emoji } from './emoji.ts'

View file

@ -3,7 +3,7 @@ import { Channel } from './channel.ts'
import {
GuildChannelCategoryPayload,
Overwrite
} from '../types/channelTypes.ts'
} from '../types/channel.ts'
import cache from '../models/cache.ts'
export class CategoryChannel extends Channel {

View file

@ -1,5 +1,5 @@
import { Client } from '../models/client.ts'
import { GuildTextChannelPayload, Overwrite } from '../types/channelTypes.ts'
import { GuildTextChannelPayload, Overwrite } from '../types/channel.ts'
import cache from '../models/cache.ts'
import { TextChannel } from './textChannel.ts'

View file

@ -1,6 +1,6 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { GuildVoiceChannelPayload, Overwrite } from '../types/channelTypes.ts'
import { GuildVoiceChannelPayload, Overwrite } from '../types/channel.ts'
import { Channel } from './channel.ts'
export class VoiceChannel extends Channel {

View file

@ -1,5 +1,5 @@
import { Client } from '../models/client.ts'
import { GuildNewsChannelPayload, Overwrite } from '../types/channelTypes.ts'
import { GuildNewsChannelPayload, Overwrite } from '../types/channel.ts'
import { TextChannel } from './textChannel.ts'
export class NewsChannel extends TextChannel {

View file

@ -1,8 +1,8 @@
import { Client } from '../models/client.ts'
import { ChannelPayload } from '../types/channelTypes.ts'
import { GuildPayload } from '../types/guildTypes.ts'
import { InvitePayload } from '../types/inviteTypes.ts'
import { UserPayload } from '../types/userTypes.ts'
import { ChannelPayload } from '../types/channel.ts'
import { GuildPayload } from '../types/guild.ts'
import { InvitePayload } from '../types/invite.ts'
import { UserPayload } from '../types/user.ts'
import { Base } from './base.ts'
export class Invite extends Base {

View file

@ -1,6 +1,6 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { MemberPayload } from '../types/guildTypes.ts'
import { MemberPayload } from '../types/guild.ts'
import { Base } from './base.ts'
import { User } from './user.ts'

View file

@ -8,7 +8,7 @@ import {
MessagePayload,
MessageReference,
Reaction
} from '../types/channelTypes.ts'
} from '../types/channel.ts'
import { Client } from '../models/client.ts'
import { User } from './user.ts'
import { Member } from './member.ts'

View file

@ -1,7 +1,7 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { Base } from './base.ts'
import { RolePayload } from '../types/roleTypes.ts'
import { RolePayload } from '../types/role.ts'
export class Role extends Base {
id: string

View file

@ -1,6 +1,6 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { UserPayload } from '../types/userTypes.ts'
import { UserPayload } from '../types/user.ts'
import { Base } from './base.ts'
export class User extends Base {

View file

@ -1,7 +1,7 @@
import cache from '../models/cache.ts'
import { Client } from '../models/client.ts'
import { MemberPayload } from '../types/guildTypes.ts'
import { VoiceStatePayload } from '../types/voiceTypes.ts'
import { MemberPayload } from '../types/guild.ts'
import { VoiceStatePayload } from '../types/voice.ts'
import { Base } from './base.ts'
export class VoiceState extends Base {

View file

@ -1,6 +1,6 @@
import { Client } from '../models/client.ts'
import { UserPayload } from '../types/userTypes.ts'
import { WebhookPayload } from '../types/webhookTypes.ts'
import { UserPayload } from '../types/user.ts'
import { WebhookPayload } from '../types/webhook.ts'
import { Base } from './base.ts'
export class Webhook extends Base {

View file

@ -1,7 +1,7 @@
import { Embed } from '../structures/embed.ts'
import { EmojiPayload } from './emojiTypes.ts'
import { MemberPayload } from './guildTypes.ts'
import { UserPayload } from './userTypes.ts'
import { EmojiPayload } from './emoji.ts'
import { MemberPayload } from './guild.ts'
import { UserPayload } from './user.ts'
export interface ChannelPayload {
id: string

View file

@ -1,4 +1,4 @@
import { UserPayload } from './userTypes.ts'
import { UserPayload } from './user.ts'
export interface EmojiPayload {
id: string

View file

@ -1,10 +1,10 @@
// https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway
// https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events
import { EmojiPayload } from './emojiTypes.ts'
import { MemberPayload } from './guildTypes.ts'
import { ActivityPayload, PresenceUpdatePayload } from './presenceTypes.ts'
import { RolePayload } from './roleTypes.ts'
import { UserPayload } from './userTypes.ts'
import { EmojiPayload } from './emoji.ts'
import { MemberPayload } from './guild.ts'
import { ActivityPayload, PresenceUpdatePayload } from './presence.ts'
import { RolePayload } from './role.ts'
import { UserPayload } from './user.ts'
/**
* Gateway OPcodes from Discord docs.

View file

@ -1,4 +1,4 @@
import { GatewayOpcodes, GatewayEvents } from '../types/gatewayTypes.ts'
import { GatewayOpcodes, GatewayEvents } from './gateway.ts'
/**
* Gateway response from Discord.

View file

@ -1,9 +1,9 @@
import { ChannelPayload } from './channelTypes.ts'
import { EmojiPayload } from './emojiTypes.ts'
import { PresenceUpdatePayload } from './presenceTypes.ts'
import { RolePayload } from './roleTypes.ts'
import { UserPayload } from './userTypes.ts'
import { VoiceStatePayload } from './voiceTypes.ts'
import { ChannelPayload } from './channel.ts'
import { EmojiPayload } from './emoji.ts'
import { PresenceUpdatePayload } from './presence.ts'
import { RolePayload } from './role.ts'
import { UserPayload } from './user.ts'
import { VoiceStatePayload } from './voice.ts'
export interface GuildPayload {
id: string

View file

@ -1,6 +1,6 @@
import { ChannelPayload } from './channelTypes.ts'
import { GuildPayload } from './guildTypes.ts'
import { UserPayload } from './userTypes.ts'
import { ChannelPayload } from './channel.ts'
import { GuildPayload } from './guild.ts'
import { UserPayload } from './user.ts'
export interface InvitePayload {
code: string

View file

@ -1,4 +1,4 @@
import { UserPayload } from './userTypes.ts'
import { UserPayload } from './user.ts'
export interface PresenceUpdatePayload {
user: UserPayload

View file

@ -1,5 +1,5 @@
import { GuildPayload } from './guildTypes.ts'
import { UserPayload } from './userTypes.ts'
import { GuildPayload } from './guild.ts'
import { UserPayload } from './user.ts'
export interface TemplatePayload {
code: string

View file

@ -8,7 +8,7 @@ import {
GuildNewsChannelPayload,
GuildTextChannelPayload,
GuildVoiceChannelPayload
} from '../types/channelTypes.ts'
} from '../types/channel.ts'
import { DMChannel } from '../structures/dmChannel.ts'
import { GroupDMChannel } from '../structures/groupChannel.ts'
import { CategoryChannel } from '../structures/guildCategoryChannel.ts'