import BaseAPI from './BaseAPI' ; export default class MPIM extends BaseAPI { public close ( channel , extraArgs = { } ) { const args = { channel , ... extraArgs } ; return this . _post ( 'mpim.close' , args ) ; } public history ( channel , count = 100 , inclusive = '0' , latest = 'now' , oldest = 0 , unreads = '0' , extraArgs = { } ) { const args = { channel , count , inclusive , latest , oldest , unreads , ... extraArgs } ; return this . _get ( 'mpim.history' , args ) ; } public list ( cursor = null , limit = 0 , extraArgs = { } ) { const args = { cursor , limit , ... extraArgs } ; return this . _get ( 'mpim.list' , args ) ; } public mark ( channel , ts , extraArgs = { } ) { const args = { channel , ts , ... extraArgs } ; return this . _post ( 'mpim.mark' , args ) ; } public open ( channel , user , extraArgs = { } ) { const args = { channel , user , ... extraArgs } ; return this . _post ( 'mpim.mark' , args ) ; } public replies ( channel , thread_ts , extraArgs = { } ) { const args = { channel , thread_ts , ... extraArgs } ; return this . _get ( 'mpim.replies' , args ) ; } }