Skip to content

Instantly share code, notes, and snippets.

@appellation
Last active June 21, 2020 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appellation/c1a4f64fda34d13ef27e3f06e1f1e78f to your computer and use it in GitHub Desktop.
Save appellation/c1a4f64fda34d13ef27e3f06e1f1e78f to your computer and use it in GitHub Desktop.
export function add(a, b) {
return a + b + 2;
}
export function p() {
return Promise.resolve('foo');
}
import { p } from './add.js';
import { fetch } from 'discord';
export async function hello(a, b) {
const v = await p();
let c = await fetch({ method: 'GET', url: 'https://google.com', body: '' });
return { c, v };
}
export function world() {
return 'world';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment