This file contains hidden or 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
/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-return */ | |
import { | |
promises as fs, | |
} from 'fs' | |
import { join } from 'path' | |
export async function load (path: string): Promise<any> | |
export async function load (path: Array<string>): Promise<Array<any>> | |
export async function load ( | |
path: string | Array<string>, |
This file contains hidden or 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
{ | |
"name": "request", | |
"version": "1.0.0", | |
"main": "request.js" | |
} |
This file contains hidden or 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
export function isInDM ( | |
subject: TextableChannel, | |
): subject is PrivateChannel | |
export function isInDM ( | |
subject: Message, | |
): subject is Message<PrivateChannel> | |
export function isInDM ( | |
subject: Message | TextableChannel, | |
): subject is Message<PrivateChannel> | PrivateChannel { | |
if (subject.constructor === Message) { |
This file contains hidden or 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
import { readFile } from 'fs/promises' | |
import crypto from 'crypto' | |
import OAuth from 'oauth-1.0a' | |
import fetch from 'node-fetch' | |
import { config } from 'dotenv' | |
config() | |
const CAPTION_SEPARATOR = ' - ' | |
const POST_STATE = 'draft' // creating post as a draft |
OlderNewer