// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Dm {
    public var send: Send {
        Send(path: path + "/send")
    }

    public struct Send {
        /// Path: `/api/dm/send`
        public let path: String

        /// Send Message
        ///
        /// Send a message to another user or a group.
        public func post(_ body: GenAPI.SendMessageRequest) -> Request<GenAPI.SendMessageResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_dm_api_send_message")
        }
    }
}
