-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23dceb5
commit 4fcbfab
Showing
35 changed files
with
47 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"importMap": "import.json", | ||
"compilerOptions": { | ||
"strict": true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"imports": { | ||
"revolt-api-types": "https://deno.land/x/[email protected]/types.ts", | ||
"events": "https://deno.land/[email protected]/node/events.ts", | ||
"crypto": "https://deno.land/[email protected]/node/crypto.ts", | ||
"collection": "https://esm.sh/@discordjs/[email protected]", | ||
"@revoltio/rest": "https://deno.land/x/[email protected]/mod.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,28 +15,17 @@ await build({ | |
outDir: './npm', | ||
shims: { | ||
webSocket: true, | ||
custom: [{ | ||
package: { | ||
name: 'crypto', | ||
}, | ||
globalNames: ['randomBytes'], | ||
}], | ||
}, | ||
compilerOptions: { | ||
target: 'ES2021', | ||
}, | ||
importMap: './import.json', | ||
mappings: { | ||
'https://deno.land/x/[email protected]/mod.ts': { | ||
name: '@revoltio/rest', | ||
version: '^1.1.0', | ||
}, | ||
'https://esm.sh/@discordjs/[email protected]': { | ||
name: '@discordjs/collection', | ||
version: '^0.6.0', | ||
}, | ||
'https://deno.land/x/[email protected]/types.ts': { | ||
name: 'revolt-api', | ||
version: '^0.5.3-5-patch.4', | ||
}, | ||
}, | ||
|
||
package: { | ||
name: 'revolt.io', | ||
version: Deno.args[0].replace(/[A-Z]+/gi, ''), | ||
|
@@ -45,7 +34,6 @@ await build({ | |
devDependencies: { | ||
'@types/node': '^16', | ||
'@types/ws': '^8.5.3', | ||
'revolt-api': '^0.5.3-5-patch.4', | ||
}, | ||
repository: { | ||
type: 'git', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
// deno-lint-ignore-file no-explicit-any | ||
import { EventEmitter } from 'https://deno.land/[email protected]/node/events.ts'; | ||
import { EventEmitter } from 'events'; | ||
import { Client } from './mod.ts'; | ||
import { | ||
REST, | ||
RESTOptions, | ||
} from 'https://deno.land/x/[email protected]/mod.ts'; | ||
import { REST, RESTOptions } from '@revoltio/rest'; | ||
import type { | ||
Channel, | ||
DMChannel, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { RevoltConfig } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { RevoltConfig } from 'revolt-api-types'; | ||
import { BaseClient, WebSocketShard } from './mod.ts'; | ||
import { ActionManager } from './actions/ActionManager.ts'; | ||
import { Error } from '../errors/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Message as APIMessage } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Message as APIMessage } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events, SYSTEM_USER_ID } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Message as APIMessage } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Message as APIMessage } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Server as APIServer } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Server as APIServer } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Member as APIMember } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Member as APIMember } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Server as APIServer } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Server as APIServer } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { User as APIUser } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { User as APIUser } from 'revolt-api-types'; | ||
import { Action } from './Action.ts'; | ||
import { ClientUser } from '../../structures/ClientUser.ts'; | ||
import { Events } from '../../util/Constants.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import type { | |
Member as APIMember, | ||
Message as APIMessage, | ||
User as APIUser, | ||
} from 'https://deno.land/x/[email protected]/types.ts'; | ||
} from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { Channel, Message, ServerMember, User } from '../structures/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Role as APIRole } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Role as APIRole } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { Role, Server } from '../structures/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Server as APIServer } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Server as APIServer } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { Server } from '../structures/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Member as APIMember } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Member as APIMember } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { Server, ServerMember, User } from '../structures/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { User as APIUser } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { User as APIUser } from 'revolt-api-types'; | ||
import { BaseManager } from './BaseManager.ts'; | ||
import { TypeError } from '../errors/mod.ts'; | ||
import { Message, User } from '../structures/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Category as APICategory } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Category as APICategory } from 'revolt-api-types'; | ||
import { Base, Server, ServerChannel } from './mod.ts'; | ||
import { Collection } from '../util/mod.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { | ||
Base, | ||
DMChannel, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Channel, Message } from './mod.ts'; | ||
import { TextBasedChannel } from './interfaces/mod.ts'; | ||
import { Client, MessageManager, MessageOptions } from '../lib.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import type { Message, User } from './mod.ts'; | ||
import type { TextBasedChannel } from './interfaces/mod.ts'; | ||
import type { Client } from '../client/Client.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import type { | |
File, | ||
Message as APIMessage, | ||
SystemMessage, | ||
} from 'https://deno.land/x/[email protected]/types.ts'; | ||
} from 'revolt-api-types'; | ||
import { | ||
Base, | ||
DMChannel, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import type { | ||
Embed, | ||
Special, | ||
} from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Embed, Special } from 'revolt-api-types'; | ||
|
||
export type EmbedImage = Extract<Embed, { type: 'Image' }>; | ||
export type EmbedVideo = Extract<Embed, { type: 'Video' }>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Channel, Message, User } from './mod.ts'; | ||
import { TextBasedChannel } from './interfaces/mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Role as APIRole } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Role as APIRole } from 'revolt-api-types'; | ||
import { Base, Overwrite, Server } from './mod.ts'; | ||
import { ChannelPermissions, UUID } from '../util/mod.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Server as APIServer } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Server as APIServer } from 'revolt-api-types'; | ||
import { Base, Category, ServerMember, User } from './mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
import { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Category, Channel, Server } from './mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
import { ChannelPermissions, Collection } from '../util/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import type { | ||
File, | ||
Member as APIMember, | ||
} from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { File, Member as APIMember } from 'revolt-api-types'; | ||
import { Base, Server, User } from './mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { Message, ServerChannel } from './mod.ts'; | ||
import { TextBasedChannel } from './interfaces/mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import type { | |
File, | ||
Presence as APIPresence, | ||
User as APIUser, | ||
} from 'https://deno.land/x/[email protected]/types.ts'; | ||
} from 'revolt-api-types'; | ||
import { Base, DMChannel } from './mod.ts'; | ||
import { Client } from '../client/Client.ts'; | ||
import { Badges, Presence, UUID } from '../util/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Channel as APIChannel } from 'https://deno.land/x/[email protected]/types.ts'; | ||
import type { Channel as APIChannel } from 'revolt-api-types'; | ||
import { ServerChannel } from './mod.ts'; | ||
import { Client } from '../lib.ts'; | ||
import { ChannelTypes } from '../util/mod.ts'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { randomBytes } from 'https://deno.land/[email protected]/node/crypto.ts'; | ||
import { randomBytes } from 'crypto'; | ||
|
||
export class UUID extends null { | ||
static readonly ENCODING = '0123456789ABCDEFGHJKMNPQRSTVWXYZ'; | ||
|