#development
1 messages · Page 1449 of 1
I just want to set user = and find if the person is in a mutual server with the bot and if is, set user = mentionedUser that is in other server

yes
How do I iterate over a map?
how do i set my discord bot's activity
oops didnt push
but still, i compiled locally and it did nothing
@earnest phoenix pushed
is there something like client.guilds.members.cache.get(args[0]);? To get mentioned user from another server where the bot is present
@pure lion Did it fix it?
Oh yea, i thought you didn't push it so
map.forEach or for...of map.values/keys/entries()
hello??
alright ty
{
"compilerOptions": {
"allowJs": true,
"target": "ESNext",
"outDir": "./dist",
"module": "CommonJS",
"strictNullChecks": false,
"esModuleInterop": true,
"strict": true
},
"include": ["src/*"]
}```
here's my tsconfig if it helps
client.user.setStatus('')
@pure lion Coming up, but not now
damn you guys are on fire
@earnest phoenix it did jack shit
@quartz kindle yes we're literally on fire and in so much pain 
tim, vx
:C
please help me with typing
y
Plus who here can make a bot on iOS and is able to help/teach me what to do?
helpp
I wanna make vote webhook
but i read the api
still dosent understand
vote webhooks have nothing to do with discord webhooks
whats your programming language?
then what
How do I make my bot send a message when it joins?
Like it says
Thank you for adding me
ye
so your bot runs on node.js?
where is your bot hosted? your pc?
How do I make my bot send a message when it joins?
so not your pc
yes
what library?
that would be helpful
i edit codes on pc
are you using dblapi.js or top.gg-sdk?
Library? Wtf is that lmao sry I suck at this
module, for contacting the discord gateway
like discord.js
discord.py etc
tim was responding to someone else.
Ok
how do i use that
if youre using discord.js, youre probably looking for https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-guildCreate
kk
which library and programming language are you using?
$ npm i @top.gg/sdk
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@top.gg%2Fsdk - Not found
npm ERR! 404
npm ERR! 404 '@top.gg/sdk@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/12.0.0/_logs/2020-12-13T17_22_38_411Z-debug.log
@quartz kindle
sed
BDscript and bdscript unstable if you want me to use Java I can
auric have you figured out the poo?
oh the typings?
$ npm i top-gg/sdk
The authenticity of host 'github.com (140.82.114.4)' can't be established.e47e1d
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
[..................] - rollbackFailedOptional: verb npm-session 3ba8b24a5be47e1d
help
i dont use bdfd because its too limited, check their documentation or ask in their server if there is a "guildCreate event"
Ok you use discord.js cos I can?
correct, lets see
i use discord.js yes
oui
Ok I’ll use it
actually
ptfff switch to ourcord
prototype pollution go brrrrrr
checking rn
interface lol {
funcName(param:string) => Promise<any>
}
@quartz kindle
rather than :
with?
what about typings?
@quartz kindle ?
where?
well i have a .d.ts file and all my typedefs in place but when i compile it doesnt intellisense
i dont see
100 pings a sec lmao
for the Cursor interface?
@quartz kindle
in where
no
yes, but i dont have ts installed
@quartz kindle help me when
you forgot semicolon
who
funcNeme: (params:type) => returns
hELp
what do i do nowwwwwwwwww
@pure lion wusup
ok so
export class Client extends Emitter {
token: string;
socket: typeof Emitter;
config: ClientOptions;
/**
*
* @param {string} token the token used for auth
* @param {ClientOptions} options
*/
constructor(token: string, options: ClientOptions);
```this is the client constructor in my .d.ts file
and
is your file TS?
not the declarations, the actual file you trying to import that in
yeah
thats legit the same thing i was on about yesterday
that pic is using the transpiled js
did you install it? now read their examples: https://top.gg/api/docs#jslib
more specifically, check "Example of using webhooks to receive vote updates" in the examples section
that happens because require() is any, and your exported class is not expring all that
no, the file required is transpiled ts
correct
you trying to import ts into js
ts can import jdocs and ts declarations
js can only import jdocs
i just told you
@coral trellis ads
i am confusion
because
and it connects and everything
if it errors, your declaration is wrong, if not, use the constructor right away
comment in the file?
check "Example of using webhooks to receive vote updates" in the examples section
const client = new require('/websocket')();
console.log(client)
``` @pure lion
try that
that was the same mistake the other guy did yestrerday
@earnest phoenix actually nvm, those are outdated. read this one: https://www.npmjs.com/package/@top-gg/sdk
I installed that one?
actually good thing you reminded me tim, i need to ask xetera if theres a need for a new declaration file for ts
cuz its not dlbapi anymore
tim, using fast zlib would this work https://github.com/ourcord/ourcord/pull/14
@honest perch can you shout at starman
@sinful belfry H
what happened
there's an error being thrown
no
show the error you noob
watch it be ur implementation
ok good to know tim
"cant read property cacheChannels of undefined"
i am going to kill you starman
un-push your files
const inflateData = zlib("Inflate");
or face the wrath of tired dice
its not
@quartz kindle i dont understand where do i put those codes
from which file?
in...your...files?
also, im not sure if this will work import zlib from 'fast-zlib';
what does ts do when you dont export an object?
it will screech at you, import resolves on require if its es5 iirc
but just cuz of typings
import X from Y would only work if you module.exports = { X } no?
if you do module.exports = X how do you import it?
import * as X from Y?
if (!options) {
this.config = {
browser: 'ourcord (https://github.com/ourcord/ourcord)',
device: 'ourcord (https://github.com/ourcord/ourcord)',
status: 'dnd',
};
} else this.config = options;
this.cache = new Cache(options);```
export X is just an alias for module.exports.X = X
let hello = 'hello World'
export hello as HelloWorld;
import HelloWorld from './file'
exactly
yeah, but named exports is a bliss
so it should work fine
lemme give it a try actually
but if you are a js user, then you have to do let { X } = require("X") whicih is annoying
as a js user, you want to simply do let whatever = require("X")
thats why you replace module.exports entirely
@quartz kindle
ever used express.js?
nope...
its a module exports
yes but its an object
without it being named it resolves as default
module.export.thing
import {thing} from module
try doing module.exports = something that is not an object
ur telling to me?
module.exports
import {default} from module
no im talking to erwin
o
lets see
wot i do tell pls
the whole ting is that you cant do import X from Y if yoour module.exports is not an object, while in js you can
so you have to do import default from Y?
imagine being ingored
lemme just confirm, cuz i usually use exports, which is what should be used for export/import syntax
its weird to mix es5 and es6 syntax
imagine being able to do everything at once
just please tell
Then learn? This just shows that you haven't tried
My bot pubblic PLS psl
You're just making people less likely to help you
Hmm
if you dont have express installed, install it
Ok
then?
cant do that aparently
where do i put that webhook server code
cuz usually this is the proper way to export modules in es6
or ts export foo as NamedFoo
like for example, many js libs on npm are basically this: ```js
module.exports = () => { ... }
or
module.exports = class { ... }
how do you import those in ts usually?
you should be able to do import default from 'module'
ah
you might need to do {default}
then yeah, thats the same issue dice and that other guy yesterday were having
require() returns any
@opal plank what was the use ts thingy
which is a pain in the ass to convert from js
also it works
lemme check something rq
//@ts-ignore
const { Client } = require("./websocket");
const client = new Client(process.env.TOKEN);
client.connect();
client.on("ready", () => {
console.log("sdioghosdighiosh")
})```
no
it logged the string
I'm trying to help someone fix their bot, is it really the case that ytdl can't bind to an IP address?!
in what sense? ytdl is not a server, it doesnt bind anywhere
It does
All internet requests have a source and destination ip
Usually a program picks an IP on your server itself
But if a server is multi homed eg it has 20 ips
@pure lion
There should be a way to tell it which to bind to for making its request
That way you're less likely to be banned by YouTube
ytdl just sends a request to whatever network interface the operating system gives it, it doesnt chose
if you want to avoid ip bans, look into proxying ytdl
they have an example for proxying their requests
I use this same thing against Google translate rate limits but it seems ytdl was made by someone who had no clue about tcp
@quartz kindle check this
It's not my bot, I've suggested lavalink
you'll achieve better performance with ffmpeg and ytdl if you know how to use them properly
To be honest,.if it was my bot id have done it myself, it's trivial
also TIL ffmpeg outputs status updates through stderr 🤯
classes are funkier, lemme get an example
C++ for life y'all
erwin did you like

a
@quartz kindle
what the hhhhhhh
import default as MyClass from Y
yes, cuz unnamed export
something like that?
unnamed export turns into default
ok
dont call me a cuck you cock
didnt you have to wait for starman?
nah i fixed it
then whats up?
im exporting the class directly in js, and also exporting it like this in d.ts ```js
declare module "mymodule" {
class MyClass { ... }
export = MyClass
}
but the types still dont exist
the file runs
but i want intellisense
for my client options
im not sure you need an export inside the module, i think if you declare it ontop it should work fine
thats what several SO answers said to do
If anyone's interested this is what I mean by port binding. It's a great way to get around certain limits (not discord API) if you have many ips on your server
https://hastebin.com/wotemixeme.php
import {MyClass} from 'interface'
declare module "mymodule" {
class MyClass { ... }
}
actually
my bad, its cuz i do something different
i import the whole file alongside
not sure if js exposes that
lemme grab an example
this probably wont be any good for this case now that i think about it since its ts
dice and his stupidsense
you can bind a server to a specific ip address in node, like express
but ytdl is not a server, not sure if you can bind outgoing requests to specific IPs
that imports all the files and merges the ones with the same name
i simply import everything and it merges any interface called CLient
Client*
but thats already for typings and its ts, so it wont be much use here, cuz otherwise you could call it from the top of your file
lemme check for classes
https://alebot.is-inside.me/svCrkkWR.png its any type here
https://alebot.is-inside.me/cm0zwTaR.png but this type in the .d.ts file
https://alebot.is-inside.me/kDeWwGdD.png and this in the corresponding ts file
Where is the problem?
Error: function without catch block
Its a music bot script
I don't undestand
wait
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Where is the problem?
@quartz kindle actually that way is right
Who uses rep.lit
me
@earnest phoenix const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready!');
});
client.on('message', message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command === 'ping') {
message.channel.send('Pong.');
} else if (command === 'beep') {
message.channel.send('Boop.');
}
// other commands...
});
client.login(token);
what is this
May I have help with commands I found this script
sits
you should really follow the djs guide.
@misty sigil so can you help me?
https://pastebin.com/Wf6Pm3gq
Error: a function without .catch block
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
you need 2 exports @quartz kindle
One in the file itself with the module and the same name
And one on the declaration file, they are imported based on the same name
https://github.com/erwin1234777/dblapi.js/blob/master/src/index.js#L240
https://github.com/erwin1234777/dblapi.js/blob/master/typings/index.d.ts#L1
The d.js guide is one of the easiest things to follow lol
https://discordjs.guide/
^ a good place to learn djs
whats the actual error.
@earnest phoenix do you have a script of commands I can use?
sits harder
yes i have them both
what is the declare namespace for?
i have declare module instead
it overrides the module iirc
so when you require it, it pulls from the declaration first
install ffmpeg
not the exports
okay
interfaces are not automatically exported right?
Who has a script of moderation I can use?
erwin, do you want my entire .d.ts file?
just add an export infront and you good to go
but you only need exports when you need it outside
ye i only have one interface for an object, i dont want to export it
if you declare everything in the file, you only need to export them on the final export
if its internal, and not needed outside of the file, keep it without export, it pulls from the parent
i have a method that returns an object with 3 functions (cursor), its better to declare it as an interface or as an object?
Who has a script of moderation I can use?
interface is an object
ah ok
was the issue Tim was having that he was exporting a class?
im not having any issue, im just asking because i dont use ts
and i want my thing to work on ts too
but icba installing ts to test it
lmao
@opal plank should i export the things as types and not interfaces then :d
in my .d.ts
TIL
@opal plank just tried it, didnt work
Like i said, i dont know what youre doing
@opal plank U
@slender thistle U2
trying to get types i wrote to work in transpiled js
why though
i told you
it dont work like that
ts types only import on ts files
ts => jsdocs/ts types
js => just jsdocs
so i cant have custom type "Pootis" on my client
aw man
then how does discord.js do it
i asked them if they wanted to, they said they dont need it since most ts users know what they're doing so its pointless
lol
its for a discord lib so it has to be idiot proof
there's a new lib i've seen in dapi specifically made for ts
go to d.js official server and search by me in there, you'll get the chat we had
not new at all
alrighty
oh
can i at least get it to show intellisense for the fields i want
make jsdocs comments
alrighty
/**
- @param string hello world
- @private thingy private thingy
*/
you've seen ti before
wait what's private?
public/private
readonly
theres a bunch of shit in js
static
void
its more complicated js to put it bluntly
when you fuck with classes and returns, you'll get there
its the way lib devs say: dont touch this or it will break shit
I thought private wasn't a thing in js
it has been a thing since es6, no?
then i go in it and change it to public cuz im 300 iq

usually they start with _
though thats 100% preference
i usually use _ when i need a related variable , not speicfically for that
yeah that's inherited from c# i believe
we like to use underscores to declare class fields
for (let _e of e) {}
i usually do that quite a bit
since its all under e
e, _e, __e, ___e
if it gets past 3 i change it
fuck man
i dont have a handy example of underscoring hell
ikr
thinking about backtracking to when you said nah when i asked ya if you wanted typings?

lmao
wink wink
what is it about though?
its not even on github yet
lmao
im gonna publish it all at once when its finished
rn im a lot busy so im short on time cuz irl, chick and lots of people asking me to work for them, but i can give it a help
nah im good, just need to finish writing the jsdoc, no need to hurry haha
theres a jsdocs generator btw
and the same for ts
also @quartz kindle https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html
How to add d.ts generation to JavaScript projects
wont do a flawless work, but will surely reduce 90% of the writing
i'll give those a try sometime xD
a friend is using that for their API and its working out great
no major hiccups with the ts one
oh, i usually go a bit overboard
im doing it in the .d.ts file because fuck it
thats jsdocs though xD
LMAO
400iq
imagine not fully abusing the ts intellisense though
you legit dont need docs/website if you ship your module with this, take up time here, but dont need to fuck with vue/react to make something on a website
You can't just document a specific field?
you can, jsdocs is for that
@param
boom, done
i usually integrate everything, sometimes it just says @returns object
but you dont know the shape of it, nor if it has custom types
then why state all the fields like that up there (* [Name | Type | Boolean | Description])
WHAT DOES IT DO
EXAMPLE
WHAT DOES IT RETURN
WHAT DOES IT TAKE(PARAMS)
thats the format i follow when i make intellisense
🤔
why is the param showing before the description tho
i mean on mine
i think thats meant to happen
ERROR: Could not find a version that satisfies the requirement dblpy (from versions: none)
ERROR: No matching distribution found for dblpy?
how do dat
now the param thing kinda ruins it
markdown
thats sharex
i mean
how is the conversation going
inside the red circle
im a full believer of ts, why do i need to open chrome everytime i need to search for a d.js thing? might aswell ship the whole documentation with the lib

the WHOOOLE THING
rust does that
what about the thing inside the red circle?
ah fair
wait
ts can transpile that into vanilla js on the targeted version even if that syntax isnt native
import > require?
why write shit in js, hoping to work in ts, when you can do ts, and transpile to js in whichever version/flavour you like?
yes, named exports is a bliss
I have a question about typings actually rn
what about it?
can you tell .d.ts that you are exporting your package as a class?
i have intellisense directly behind the constructor but none at client.config
like in module.exports you can just export a class
can you tell ts you are doing that?
i was talking to tim about that just a moment ago
by a moment i mean like 30 minutes ago
hmmm
might be worth looking in chat, it was a long thing, kinda lazy to repeat all xD
you think so?
but since its the official jsdoc syntax better leave it
frick official syntax, gimme my complete documentation shipped with the libs
xD
LOL
ship an electron app that renders a full blown page on hover 🧠
YES
who needs a website when you can render shit on the client
brb, gonna do that

who needs responsive css when you can just return json
huh?
a
json is so much easier, there are no ads, no slow responses, no responsive css, no being confused when shit is cached and its not supposed to be
no
well yeah, you didnt make that a module
you put an ad inside the json
change the extension type to mjs
how is google supposed to track you then!!!
they aren't 
LMFAO
LOL
hmm not bad
bruh
??
what the fuck why the fuck and how the fuck is that like that
aaaw, i cant do this in vsc
what do you use normally?
inb4 you have a youtube video of raid shadow legends autoplayed when you hover a var in vsc
LMAOO
what about markdown syntax for images
hmmm lets see
also try base64 images
change it to THIS PORTION OF THE DOCUMENTATION IS SPONSORED BY RAID SHADOW LEGENDS
LMFAO
LOLO
are you going to push that?
I agree with Tim
wait
hmmm
add an extra method to the class
that does nothing
but when you hover it in vsc
it shows that
LMFAO
bruh im so doing that
.raid()
LOL
How I make my bot send a message when it joins a server?
.raid(invite: Invite, amountOfRaidingAccounts: integer)
xDDDD

but the only thing it does is return a raid shadow legends in a string X times
DISCORD.JS
when the bot joins the server try to send a message to the default channel
What if I am not in the server?
why would you need to be in the server?
if you're using discord.js ```js
client.on("guildCreate", guild => {
console.log("joined new guild: " + guild.name);
if(guild.systemChannel) {
guild.systemChannel.send("thank you for adding me!").catch(e => console.log("failed to send message due to error: ", e))
}
})
Tim I think my json db is just about done
Can I change some stuff
if it corrupts ima add atomic writes but im too lazy to do it rn
sure
client.on("guildCreate", guild => {
console.log("joined new guild: " + guild.name);
if(guild.systemChannel) {
guild.systemChannel.send("thank you for adding me pls do w!help if you need help")
}
})
that would work
Ok
what about if the bot doesn't have perms to talk in the channel Tim
Lmao
Hİ
right so im using an import statement in my .mjs file but its throwing a require error. WHY
I don't remember seeing that catch when he first wrote ut
import { Client } from "../src/websocket";```
```cmd
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\cygwin64\home\james\coding\github\our.discord\dist\example.index.mjs```
ok james
It may not be a module
We still see your name 
no its not my name
Change user to krista smh
oh well
Are you using python?
James more like who
your parents dont know or?
my dad doesnt support me
no, js
i did it @quartz kindle @earnest phoenix @crimson vapor
omfg
Erwin
That looks nice af
tysm
Why
You're an idiot

omgf 7 stars instantly
no don't
wtf
how the how do i do this
how the how
@Not Erwin#8753
lmaooooo

Didn't know js did import
that's genius
Try const instead
it wont work
time for a video, lets see if vsc supports embeds, 3 times in starboard?
@opal plank can you make a different jsdoc for method arguments? like if you highlight the param inside the method
3 in a row
i am in pain polis help
Const { client } = "stuff";
import { Client } from "../src/websocket";
const client = new Client(process.env.TOKEN, {status:"online"});
client.connect()
client.on("ready", () => {
console.log("h")
})```
Hmm
hmmm i think yuo are limited to only @param and description with js docs
erwin do you know da wae
because like
i do not
vsc does show a slightly different jsdoc
not da wae to fix my error?
when you hover the params
Ohhh
im not sure about that tim
const { Client } = require('../src/websocket');
i do not, you should be able to use mjs for modules
@pure lion
tha feack
it throws a require error in mjs and a lack of require error in js
ok hold on
show?
i tried it
it did not work
module not found in case one
and import error in case two
ok when i install the published thingy and change the main path to the ts files
it throws the module error again
@here
Ads in VSC, im fairly certain not even hell can be punishment enough for such sin
@modern sable #development message
@opal plank can you send code for how you did that?
like what is my code?
@opal plank wait is that real lmao
yes
i simply added a gif onto the markdown, vsc doesnt support html tags for be to do it
not natively at least
yeah ik how but like send
thats why i was saying theres 2 paths i can do, one is add an extension to load embeds, the other was to convert into gif
o
ty
yess
i had hopes to get into the starboard 3 times in 20 minutes, specially with the final product

how do i use declare module
i did
https://million.is-a.computer/files/ODY3wakjidSW5la.png alright there we go
load please
@opal plank so basically when you add the param tags, if you hover the function, it shows all params, if you start typing the function argument, it will highlight that specific argument and hide all other params
but if you add comments and a lot of MD, those still show every time, so you cannot see anything about the parameter that is being highlighted
in ts if you declare the param as a special type it shows that type, but for primitive types that isnt the case
why if i use this code ```js
const canva = require('canvacord');
const Discord = require('discord.js')
module.exports = {
name: "trash",
description: "Trash somebody",
async run (client, message, args) {
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]).user || message.author
let avatar = member.displayAvatarURL()
let image = await canva.Canvas.trash(avatar);
let trashed = new Discord.MessageAttachment(image, "deleted.png")
message.channel.send(trashed);
}
}``` it says "cannot read property of 'user' of undefined"
@honest perch i know it works in prod
it couldn't find a member using args[0] and get the user property
but no sense at client.options
also displayAvatarURL() is a user method
how can i fix it so if there is no ID provided it returns the image from the message.author
also, you getting members in one, then user in the other two
check if there's an args[0] ?
which is a bad idea
no there are no args so i need it that it returns the image of the message.author
don't try to get the user property then
and like woo said, your defining that variable as 2 different things
im not sure whats going on lol
you want it to show if its valid regExp?
@opal plank i want it to hide all the comments and focus only on the param when you higlight the specific param
and show all the comments only when you highlight the full function
but i want it so if there is no one mentioned it returns the avatar of the member with the ID and if there is no ID it returns it from the message.author @sand condor
hmmm im not sure you can do that easily, lemme double check
and i already fixed that
it works if you dont use comments
you mean like this?
where it just shows the missing one and why its incorrect?
and not this?
i mean, it wont show why its incorrect because i dont have ts
but yes
if you dont put comments in your jsdoc, it works, all other params are hidden, and only the focused param is shown
hmmm im not sure if thats possible, its the same thing i was telling dice, js =< only dsdocs
ts => js docs and ts declarations
you could then get the user from cache not the member on the erroring attempt @timber fractal
but when you add comments, they always show all the time
ok
alright I just made my code 100x better https://github.com/Million900o/jason.db/blob/e96be3a748a291521b30b06b6cb6fc7dcd136060/lib/Collection.js#L125
did you release it as npm package?
yes
yeah i dont think you can do it the way you want @quartz kindle , at least as far as i know
ahh yes millions of stupid people installing a meme package
lol
@opal plank also, arent jsdoc typings supposed to show somewhere?
i hope that happens @lusty quest
they do show when you hover
0 
using Json as a Database is stupid in all possible ways.
ah, yes
like ```
- @param {string} query The string to search for.
only shows
@paramquery- The string to search for
when you hover
run a database benchmark and see how fast you fry it
lemme throw a script together and just destroy this lib ;p
alright please do
once someone finds a way to corrupt it I have to add atomic writes
make a script that writes a shitton of data and instantly reads it again. repeat it a few million times
to spice it up add updates and delete calls.
i was going to use workers, that would do like 100k writes and then close and open a new one.
also works
I think workers will corrupt it
do like 20 workers at once
it shows the type you defined Tim, if you set it the param as type of Query, and query is extension of string, it should show query, not string
thats the point 
yeah but thats cheating imo
json easy corrupts if you have 2 instances trying to access it
should i contribute to millions db
ok
maybe only in ts, here it shows nothing
together we can make jason.db the best one yet
türk varme
yes
type Query = string;
@param Query - comment
shows Query, not string
türk varmı
#general-int @nova spire
he eyw
LOL
hello Guys can someone tell me how i let the bot create an Invite to the channel ?
well to be fair ts should be loaded in ts
who wastes their time on this stuff
I spent like 15 minutes on those docs
i doubt it works properly in js, since its wrapper
real devs look through the code
for example, i have this
you can if you want






