mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-26 04:29:11 +00:00
11 lines
304 B
JavaScript
11 lines
304 B
JavaScript
// @flow
|
|
import { type AppContext } from '../Roleypoly'
|
|
import { type Context } from 'koa'
|
|
// import { type Guild } from 'discord.js'
|
|
|
|
export default ($: AppContext) => ({
|
|
getCurrentUser (ctx: Context) {
|
|
const { userId } = ctx.session
|
|
return $.discord.getUserPartial(ctx.session.userId)
|
|
}
|
|
})
|