mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
Deno residues removed
This commit is contained in:
parent
e8d23155b3
commit
f69f89b042
@ -1263,7 +1263,6 @@ export type PickPartial<T, K extends keyof T> = {
|
||||
[P in keyof T]?: T[P] | undefined;
|
||||
} & { [P in K]: T[P] };
|
||||
|
||||
// deno-lint-ignore no-explicit-any
|
||||
export type OmitFirstFnArg<F> = F extends (x: any, ...args: infer P) => infer R
|
||||
? (...args: P) => R
|
||||
: never;
|
||||
|
@ -4,8 +4,8 @@ export const BASE_URL = 'https://discord.com/api';
|
||||
/** https://discord.com/developers/docs/reference#api-versioning-api-versions */
|
||||
export const API_VERSION = 10;
|
||||
|
||||
/** https://github.com/discordeno/discordeno/releases */
|
||||
export const BISCUIT_VERSION = '0.2.2';
|
||||
/** https://github.com/oasisjs/biscuit/releases */
|
||||
export const BISCUIT_VERSION = '1.1.0';
|
||||
|
||||
/** https://discord.com/developers/docs/reference#user-agent */
|
||||
export const USER_AGENT = `DiscordBot (https://github.com/oasisjs/biscuit, v${BISCUIT_VERSION})`;
|
||||
|
@ -2122,7 +2122,6 @@ export interface DiscordGuildBanAddRemove {
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#message-reaction-remove */
|
||||
// deno-lint-ignore no-empty-interface
|
||||
export interface DiscordMessageReactionRemove
|
||||
extends Omit<DiscordMessageReactionAdd, 'member'> {}
|
||||
|
||||
@ -2204,7 +2203,6 @@ export interface DiscordReady {
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/guild#unavailable-guild-object */
|
||||
// deno-lint-ignore no-empty-interface
|
||||
export interface DiscordUnavailableGuild
|
||||
extends Pick<DiscordGuild, 'id' | 'unavailable'> {}
|
||||
|
||||
@ -2376,7 +2374,6 @@ export interface DiscordGuildMemberUpdate {
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#message-reaction-remove-all */
|
||||
// deno-lint-ignore no-empty-interface
|
||||
export interface DiscordMessageReactionRemoveAll
|
||||
extends Pick<
|
||||
DiscordMessageReactionAdd,
|
||||
|
@ -258,7 +258,6 @@ export class OptionBased {
|
||||
return this.addOption(fn, ApplicationCommandOptionTypes.Mentionable);
|
||||
}
|
||||
|
||||
// deno-lint-ignore ban-types
|
||||
static applyTo(klass: Function, ignore: Array<keyof OptionBased> = []): void {
|
||||
const methods: Array<keyof OptionBased> = [
|
||||
'addOption',
|
||||
|
@ -244,7 +244,6 @@ export class TextChannel {
|
||||
/**
|
||||
* Mixin
|
||||
*/
|
||||
// deno-lint-ignore ban-types
|
||||
static applyTo(klass: Function, ignore: (keyof TextChannel)[] = []): void {
|
||||
const methods: (keyof TextChannel)[] = [
|
||||
'fetchPins',
|
||||
|
@ -64,7 +64,7 @@ export interface AllowedMentions {
|
||||
}
|
||||
|
||||
/**
|
||||
* @link https://github.com/denoland/deno_doc/blob/main/lib/types.d.ts
|
||||
* @link https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure
|
||||
* channelId is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.
|
||||
*/
|
||||
export interface CreateMessageReference {
|
||||
@ -384,7 +384,7 @@ export class Message implements Model {
|
||||
}
|
||||
|
||||
/**
|
||||
* Compatibility with Discordeno
|
||||
* Whether the author is bot.
|
||||
* same as Message.author.bot
|
||||
*/
|
||||
get isBot(): boolean {
|
||||
|
@ -7,7 +7,6 @@ export async function urlToBase64(url: string): Promise<string> {
|
||||
}
|
||||
|
||||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||
// deno-fmt-ignore
|
||||
const base64abc: string[] = [
|
||||
"A", "B", "C",
|
||||
"D", "E", "F",
|
||||
|
Loading…
x
Reference in New Issue
Block a user