0c4fdc08ce
Get invite link of a channel in a server using eval or sum.
11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
//use eval if you wanna.
|
|
//this gives you the invite link in a server of a channel.
|
|
//code by Tac Shadow#5920
|
|
|
|
async function asyncCall() {
|
|
const result = await client.channels.cache.get("CHANNEL_ID").createInvite();
|
|
|
|
message.channel.send(`${result}`);
|
|
}
|
|
|
|
asyncCall();
|