mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Initial code commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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:
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user