Last active
June 21, 2020 23:21
-
-
Save appellation/c1a4f64fda34d13ef27e3f06e1f1e78f to your computer and use it in GitHub Desktop.
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
export function add(a, b) { | |
return a + b + 2; | |
} | |
export function p() { | |
return Promise.resolve('foo'); | |
} |
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
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