import { CommandModule } from '../types' ; import { isOwner } from '../utils/Owners' ; import Suggestions from '../utils/Suggestions' ; const FReply = { name : 'freply' , async handler ( client , msg , args ) { if ( ! ( await isOwner ( msg . author . id ) ) ) return "You don't have the permission to reply to suggestions!" ; if ( ! ( await Suggestions . get ( args [ 0 ] ) ) ) return "That suggestion doesn't exist!" ; await Suggestions . reply ( args . shift ( ) , msg , args . join ( ' ' ) ) ; return 'Done!' ; } , options : { usage : '<FeedbackID> {your response}' , description : 'respond to pieces of feedback!' , hidden : true } } ; export default FReply ;