mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-06-06 00:07:01 +00:00
17 lines
388 B
JavaScript
17 lines
388 B
JavaScript
const axios = require("axios").create({baseUrl: "https://jsonplaceholder.typicode.com/"});
|
|
|
|
class Channel {
|
|
/** @type {String} */
|
|
id;
|
|
|
|
/**
|
|
* @param {Object} inp
|
|
*/
|
|
async send(inp) {
|
|
const toSend = (typeof inp == 'string') ? {content: inp} : inp;
|
|
const response = axios.post(`${id}/messages`, {
|
|
// Authorization:
|
|
|
|
});
|
|
}
|
|
} |