Alright, after a few days of trying things and going through the docs, I have discovered the solution. I am using a more recent version of Discord than the docs I was reading were written for. In the newer version, channels are created with a method in the server, not a client method. so, the code should be:
const bot = new Discord.Client();
function makeChannel(message){
var server = message.guild;
var name = message.author.username;
server.createChannel(name, "text");
}
The "text" value is the type of channel you are making. Can be text or voice.
I'll post a link to the most recent documentation for anyone else who encounters this problem here.
Hi I have several *NgIf conditions in my template. Based on the NgIf I display/render my components(different type of form) in the template. Example in one of my function (below) private _onClick(...
Hi I have several *NgIf conditions in my template. Based on the NgIf I display/render my components(different type of form) in the template. Example in one of my function (below) private _onClick(...
React Charts 2 https://github.com/gor181/react-chartjs-2 is referencing below Chart JS http://www.chartjs.org/docs/#getting-started The docs in react-chartjs-2 references chart.js docs and they're ...
React Charts 2 https://github.com/gor181/react-chartjs-2 is referencing below Chart JS http://www.chartjs.org/docs/#getting-started The docs in react-chartjs-2 references chart.js docs and they're ...
I have a datetimepicker, I'm needing this to pass the date inside the text to the model. I would place this in a fiddle but i don't know how as it has the bootstrap timepicker located here http://...
I have a datetimepicker, I'm needing this to pass the date inside the text to the model. I would place this in a fiddle but i don't know how as it has the bootstrap timepicker located here http://...
Let's say I have a div like below and my goal is to set it's css class to some computed string of classes based on the name of a vue data model property passed to the getClassText method: <div :...
Let's say I have a div like below and my goal is to set it's css class to some computed string of classes based on the name of a vue data model property passed to the getClassText method: <div :...