#development
1 messages · Page 1451 of 1
I want to
@opal plank what should I make as my first ts project?
I use typescript
is that why you forked the repo
its like before you get into classes on js, thats roughly where you guys are at in ts
Voltex is it work
Lemme update
you know types in ts, and some es6 syntax, thats about 20% of what ts can offer, yall missing a shit ton more
typeof("yes")
"a" ==("a")
Teach us.
yes
Hii
It looks very, very weird
yep
hi
Wait what do you mean
Ok if I go to sleep and when I wake up and its still broken, this is going to be written in js
dice let’s break it
NO
no idea
I WILL NOT ALLOW THAT
am staying up to 3
ok
tryin to fix it
I'll be staying up until this shit is fixed
thanks
Like bruh
This is stupid
Voltrex, what time even is it in iran
I read the docs for declaring a module, implemented it and it seemed to work
Fast forward
1:56 AM
Now it doesn't work
Bruh

coding in ts: 10% coding, 90% fighting ts
to fight the compiler
or as crabs would know, fighting the borrow checker
coding in js: 10% coding, 90% waiting for all the bugs to be tested to fix them
don’t forget waiting for build
am learning ts
defining all the types with x.d.ts looks tedious
testing in production > fighting ts
fighting ts = assurance, may take hours
testing in production => waiting for users to break it, may take weeks

i rather do the project once and have it be done with rather than maintaining a project for weeks and patch the dozens of bugs as they come
a good dev would use testing tools with babel and some other stuff to properly test it, alongside with ts, to properly get rid of bugs
What even is babel
just dont code bugs in the first place
easy
If tim says js is good, it must be good
I dont get how ts will prevent bugs
in ts how can I say a function takes ...variable?
You can still create bugs in ts
ts catches errors and bugs pre-compiling
you can, yeah
of course
though the same point goes as to why you use VSC and not notepad.exe
why not use a tool thats clearly there to help you catch bugs?
Erwin
https://million.is-a.computer/files/2Y8Br8JEd0VIhon.png how would I do this in ts?
for typings
thats a spread operator, what about it?
how would I do it in ts
lol
hmmm
i dont even get what the question is, you are simply defining args
yeah but when I use the function ts gets mad and says "Expected 1 arguments, but got 2"
just define args, thats it
@opal plank how would you jsdoc a callback
i tried the callback tag but didnt work
i wouldnt xD use jsdocs for that at all
best i can think of with jsdocs is set a function with object
Why would you even use JSDoc for a callback
because why not

@ callback - param 1 - param 2 - extra description
Erwin what would I put here? https://million.is-a.computer/files/XsRToJMG0qcIXiQ.png
thats how i'd do it, i dont even know if you can do a callback and the params
wdym what to put there?
its UR code
so how would I tell ts the input is strings?
that doesnt even have an input my dude
thats a function with any param
thats vanilla js not ts
still doesnt work
@quartz kindle ```js
/**
- @typedef {function(FpsInfo)} fpsCallback
- @callback fpsCallback
- @param {FpsInfo} fps Fps info object
*/
/**
- @typedef {Object} FpsInfo
- @property {number} fps The calculated frames per second
- @property {number} jitter The absolute difference since the last calculated fps
- @property {number} elapsed Milliseconds ellapsed since the last computation
- @property {number} frames Number of frames since the last computation
- @property {number} trigger Next computation will happen at this amount of frames
*/
/**
- FPS Meter - Returns a function that is used to compute the framerate without the overhead of updating the DOM every frame.
- @param {fpsCallback} callback Callback fired every time the FPS is computed
- @param {number} [refreshRate=1] Refresh rate which the fps is computed and the callback is fired (0 to compute every frame, not recommended)
- @returns {function} Returns a function that should be called on every the loop tick
- @author Victor B - www.vitim.us - github.com/victornpb/fpsMeter
*/
function createFpsMeter(callback, refreshRate = 1) {
// ...
}```
the problem is that I don't know what to put in the function in the typings to tell it that it can accept any amount of arguments
try declaring the objects first and see if intellisense picks it up from there
i told you though
this
I don't know what to define it as
its your code, i dont know what it does dude
the function in js takes ...args, args being a string. I don't know what ts would want that written as
you're basically saying this
myFunction()
Guys, help, myFunction is not workin g when i call it
is it like ...args: string[]
is args a string?
or what
confused
you're right flaze
do you guys even know what a spread operator does?
is string[] valid or is it array<string>
tried copying your code, still doesnt work
kind of
but not enough
[..."abc"] is going to be ["a", "b", "c"]
hmmmmm, i could 100% help you with ts declaration, jsdocs are super janky to the point im not too familiazed with it, but from the docs it seems to be doing a declaration of the OBJECT, then assinging the function TO the object, hence it pulls the OBJECT(which is a palceholder for tha params) @quartz kindle
fixed it
erwin #development message
both work
because I want to be able to say log('a', 'b', 'c') as well as log('a')
which is what i said, just define with args is
if args is an array, use any[]
if args is an array of strings, use string[]
if its a map, use Map<>
any is useful sometimes
it aint
I used ...args: any[]
i really dont think you guys would have a valid use case for any in your code
its like using vars
98% of the times you using it, its wrong
trying to fiddle with jsdocs, but i have no idea tbh
im trying xd
legit though, why not use ts?
run ts without strict. No typings, nothing, just intellisense
im not doing this for me
its for npm
people can use whatever they want, i just want the docs to work
isnt it better to do separate files then?
do the jsdocs inside the actual js files and add a typings for it?
i think im done (for now)
.d.ts went from 30 lines to 250 lines
f me
i'll send you the repo once i publish, then feel free to add ads for raid shadow legends
what's this for
i'll 100% do it, dont doubt me

3 times, daumn
❤️
Need Bot background code?
What the hell are you talking about
That doesn't make any sense what are you trying to accomplish?
you need to know css
I know, is there only one example?
Okay
is there a way to make vsc show the jsdoc for a variable? like a sort of var inspector/debugger
yeah thats what i mean
i think you can only get that pre-compilation, not post
if i do const b = a and hover b, then it doesnt show anything
same with every thing that the class methods return
yeah, i dont think you can inspect that while the code it running
oh, with ts i think you can, with jsdocs im not sure
the method would be the one i sent you before, but that isnt working
{function(OBJECTWITHPARAMS)}
i guess i'll leave it for you to test later lmao
It more sounds like intellisense isn't honoring what the type is.
I think you can declare a type in jsdoc
because for example, my interface jsdoc doesnt show at all
i can definitvely add it in ts, though jsdocs im not too familiar
even though they are fairly similar
i create a typedef in jsdoc, and set it as a return value to a func
then i call the func and put the result into a variable
hovering that variable should show the jsdoc for the typedef
but it doesnt work
You'd probably get the typedef in the function's outcome, not in the function
it shows the typings
wouldnt that be part of @return though?
hmmmm
maybe its something that only works in ts
What's your jsdoc?
in ts is expands the contents
I guess because these aren't function variables, they won't have jsdoc
hmmmmm
Isn't interface only in ts
it is
its in .d.ts
Wait typescript doesn't use jsdoc because you don't put the typings inside the comment
and then hold ctrl on it
lmao
just do that and uninstall after
doesnt it need to be global?
i wanna see if ts even pulls that
not really
if you wanna install with -g flag its even better
install where then? in the module folder?
You wouldn't put the typings in the comments in the .d.ts file
- globals
but it works for intellisense lmao
You can use them for some things but can't use them for types
it works but its not the proper way tim
take a look at this
In here you don't use the query value, you use item in the actual function
test(a:string):boolean;
//is the same as
/**
* @returns boolean
* @param {a} string
*/
test(a)
but look at how much simpler the ts one is
Yeah
lol
fixed
you define the type right after the parameter, and the return followed by a colon, doing jsdocs in ts is not ideal
i do both
Wouldn't you do that in the actual file?
only in ts
I mean the jsdoc
in js you dont have a way to force what type is coming from a function
with jsdocs, yeah
but that wouldnt be comment
thats actual type declaration
/**
* @param {string} a extra comments
* @return boolean extra comments
*/
In auto-generated .d.ts with tsc, the jsdoc always went in the original file and only the typings in the .d.ts
yeah tsc is amazing for that
if i write cursor.current() or whatever and hover the function, the comments for that function show up normally
yeah those on the interface are proper ts comments
but if i hover cursor, the comments for cursor dont
thats what im trying to figure out
which is what i asked you to try tim, try pulling ts and see if it imports them
Is it because you've labelled an interface as an object
hmm uninstall it then
i would've hoped ts would be able to properly import types
since it does auto generation on its own too
maybe there was some handy tool or something there
Hold on
im checking some ts libs
but not a single one of them uses anything other than @see and @exa\mple
there are some interesting tags i wasnt even aware of though
but this is all ts generated
i hate that it uses var when transpiling, but whatever, those guys know what they doing
i keep telling tim he should write in ts and transpile xD
since it auto generates the jsdocs for em
yeah i dont want to write my book in russian then google translate to ensligh
lmao
every time i ask for help i end up doing everything myself anyway
its always like this lmao
but its a good learning experience
tim slowly coming to the ts territory
its just a matter of time

its like leading children with candy
slowly but surely
or penny
hey, look, a penny
hey, look, a penny
goan fek urself
hey look, another penny

but did you see that thing above?
the gif, that expansion thing is with ctrl
it shows the implementation
have i shown you the types i made?
No
Is for userinfo command
you cant, you can only get roles of a member
Lol
it
it what?
which library u using?
What lib are you using
discord.js
^
i assume you know maps
TECHNICALLY its a DISCORD COLLECTION, but thats just a shitty extension of maps, which i love
np
is there any purpose in doing tsc index.d.ts?
what did you do
get the roles of a member
not really, its a typings
wdym didnt work?
i asked if you knew what a map was
show me how you implemented it
i got a bunch of errors doing it xD
lmao i warned ya xD
thats not how a map works my dude
I used member.roles.cache.map also and nothing :((((
do values() first
its a map
its like, why even bother writing in js, add support for ts, when you can simply do a ts one and compile everything. as far as the user is concerned, they are just importing what they need and getting the intellisense for it @quartz kindle
like here for example
all doodle code
but the user jsut does require('lib-name')
it looks ugly af
thats all, there shouldnt be much problem with having generated
thats the thing, why do you need the user to read internals?
they'll get lib usage AND ts + jsdocs support
have repo be ts files and npm be compiled code
if you really care about readability
which is what a couple libs do
if you write in ts both ts and js users use
if you write in js, you gotta add support for ts too manually
if you write in ts you simply compile
if you write in js you have to do work
any js syntax is valid ts, so you could just set ts to be in lax mode where it wont screech at code, and turn it on as needed
im gonna be honest
it just seems counter intuitive to write in js to add support to ts when the other way around is one simple command tsc
i tried ts 3 times now
installed it globally, started a project, etc
every single time
it simply refused to work
errors everywhere
i dont remember now, but 2000 errors for a file with a couple lines
missing definitions for whatever
when you IMPORT js TO ts, if its in strict, of course it will
thats cuz u didnt set it to be lax
legit, install typescript again, no kidding
it already is
okay, make a tsconfig.json
its the same bullshit as webpack all over again
{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "out",
"strict": false,
"allowJs": true,
"esModuleInterop": true
},
"include": ["./index.ts"],
"exclude": ["node_modules", ".vscode"]
}
add this
and the source maps bullshit
alright im gonna try something with this tomorrow
it will make a good performance test too
if you dont want ANY, absolutely ANY check, and run simple js with ts installed and get SOME of the features AS you implement them, add this ontop of your file
//@ts-nocheck
since this lib is micro-optimized
i wanna see if the ts compiler can keep the performance
ts should make it even better, but try it tomorrow
just gimme a message, i can give you a hand no problem
you've helped me plenty of times before, i wont deny helping ya
Someone familiar with youtube-dl?
but do you know something about it
what kinda tho?
Im trying to get each song info
because when a playlist contains something bad
everything collapses
ytdl = youtube_dl.YoutubeDL(new_opts)
download1 = await Downloader.video_url(song, ytdl=ytdl, loop=self.bot.loop)
this is my code
when I pass a playlist url
you need ytpl
there's a seperate package to handle playlist
ytdl only downloads a song
the download1 gives a json format with video names
yeah of the songle vid right?
(<music.Downloader object at 0x0000025EDB393E50>, {'title': 'test 3', 'queue': ['Vicetone vs. Nico Vega - Beast [Monstercat Official Music Video]', 'Domastic & Anna Yvette - Echoes [NCS Release] like that
or multiple tracks?
but when you use a playlist url does it give you all songs in the playlist?
all song names
or just one?
in some sort of a list
this is what I get when I print out download1 given a playlist :
so basically all of the names
in the playlist
and when its a single track, it outputs a queue of []
downloading isn't recommended tho
the whole vid unless you want it to for some reason?
you're only playing music right?
yeah Lavalink is better
i had the same problem
i was recommended Lavalink which kinda streams only audio from yt
aha
Pussys

i have 2 epoch/unix times, i want to find 2 things
how much time is inbetween them
like in hours or something
just that
subtract them, that will give you the time between them in seconds.
i did that
how can i convert into hours?
it doesnt seem right
i have current time - when my bot started
to find the total uptime
but it gives me a huge ass number
which i divided by 3600 and it was still huge af
it really doesnt seem right
i got the times from time.time()
and bot uptime from pm2
it gives me when it started
also
guild.members is only cached members
yes but i made sure they all talked before testing
@solemn latch or is there a py way of js fetch
yeah, probably
k
it would be in docs
ok
fetch?
dude brain is dying
1607821837176 this is the uptime
which i checked
is correct with when i started the bot
you are trying to get all the members of a guild?
yes
so Waddafuck
...
This is js nvm
Ohjhh
i usually use js
for member in ctx.guild.members:
one seems to be in ms, the other seconds @drifting wedge
Iterate over the members
If its msg then
but its not cached
but https://www.epochconverter.com/ says its the correct times
im not sure if it like converts is
Intents?
it
all on
but it seems accurate
members?
in your code?
@drifting wedge lol https://i.imgur.com/auNswlV.png
i forgot py needs intents in client

is it like
i have this issue, i call it being illiterate
/ 1000*?
@zenith knoll there^^
Yes
How do you make this
Hi
If you are developer, when you do {prefix}help it's will show developer category for you, but if you aren't the developer it doesn't show developer category
Ok
JS
if(message.author.id === 'developerid'){
use that
if your trying to log if there not a developer im guessing?
otherwise use return
Noo i mean in {prefix}help
use that in your file
hmm its gonna hide it right without this thing
oh your trying to hide a certain field?
if (!client.config.owners.includes(message.author.id)) categories = categories.filter(f => !require(./${f}/module.json).hide);
Yes i hide dont let anybody see
well that checks message author id and checks if its a certain id if true it does what ever you write next
Can you help me test cmd
sure
round(<float>, 1)
Fuck me daddy
keep it on topic

@sudden path let not get nsfw and let not get off topic
gives me more members, but not all
members = msg.guild.members
at = ""
for i in range(len(members)):
at += members[i].mention
my friend wants me to make him a mention all but without @everyone in his bot
in 1 message?
yes
Or in multiple
iterating over them returns a list
yes
So you just send that
I would have to play around with this a little bit
okie
Because @everyone doesn't work here.
ofc not
just a heads up, you could be breaking discord TOS trying to do this.
oh
doing what?
the fetch all members stuff is locked behind a privileged intent, if you want to fetch all members for something you should be going through that.
Very easily retelimited.
...

Idk i gotta read up on TOS
telling him to just write announcements himself
theres also a developer TOS
dotpost isnt allowed.
@glad charm
ok
Damn had to mute em
how do i add an embed to my sites url
Its in the meta tags
In the <head></head> tag
I forget exactly what its called but Google link embeds
That should bring it up
pls help
@glad charm 
❤️
how to split the message content?
for example, i am doing <numbers 1 2
i'm using message.content.split(" ").slice(1).join(" ") and message.content.split(" ").slice(2).join(" ")
i want it to return this:
- 1
- 2```
But it returns this instead:
- 1 2
- 2```
how to fix it?
you can just use the first one, and use the array it returns
const args = message.content.split(" ").slice(1);
args[0]; // number 1
args[1]; // number 2
let me try and se
ooooooh
i thought i need to join so that it stops
You can easily do
// To account for the command in the string
const [command, numOne, numTwo] = message.content.split(' ');
I handle commands by breaking up every message by a space and then sending that string array to each function (without the command)
const [command, ...args] = message.content.substring(length).match(/\S+/g) || [];
// some code
clientCommand.run(message, args, client);```
No problem.
anyone familiar with oauth2 flows?
nvm about it, i think i got it down. issue i was looking at wasn't with the flow at all

ik its late but look into open graph (specifically og:description (or just description) and og:image
Hi, i'm new and i can learn yours bot code? I created a bot with simple commands but you suggest me another command can I implement in my bot, please?
^
learning bot's code, that could be in any scripting language with supported packages for the discord api but i would start with learning the language first
@earnest phoenix i learn coding type an axample document.write
HTML's JS
Yes🤣
my bot is again stoped
did you get an error?
Yesterday i create a bot with a personalize command with embed and admin command (kick & ban)
i take it it's in js?
One step at a time.
there's a lot of resources out there for learning js lucikly :)
How can you create a javascipt bot? One file for each command or one js file for all commads?
Both is possible
what type?
JS Bot introduction.
^^^
i am using heroku
if you use discord.js it's helpful to refer to this: https://discord.js.org/#/docs/main/stable/general/welcome
I personally make separate files but for learning a single file is just fine.
in it web it is showing
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
ohhh, building a modmail bot for your server with heroku?
More tutorials use 1 js file for one command and how can i create a stucture folder for doing this?
oh wait
anything in package.json file?
I don't understand
anything mystic in package.json file
so you want to read other files?
if that's what you want to do you can use fs
even though it's already included with node.js you still have to call on the module
const fs = require('fs');
Yes i inlude node.js plugin in js code for starting my bot
if you aren't familiar with it i'd also check out the documentation for it
Why this code don't plus args[2] +86400000
let time1 = args[2] + 86400000
let time2 = Date.now() + time1;
message.reply(Date.now(time2))
is args[2] string
@summer torrent args[2] is 30
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")
}
})
``` this works?
@solemn jolt try console.log(typeof args[2])
Hmm? Is he tho?
@summer torrent Integer.parseInt(args[2])
Yes
NO
what
Lmao
Number(args[2])
COS IT does not work*
Does it error
i do this
No it just does not send lmao
Then there is no system channel?
There is
Console log it
let time args[2] + 2000;
console.log(time)```
args[2] = 30
In console.log get me
```console.log
302000
Done still no
Math.add(args[2], 86400000)
let time = Number(args[2]) + 2000
@crimson vapor ok
@crimson vapor token login?
Huh
Nvm
When your bot joins a guild console log the guild system channel
😐what
on event guildCreate console.log(guild.systemChannel)
I started 1 week ago in discord.js don’t blame me
Ok
Same don't don't plus
Dat Java or discord.js?
Lmao
Java is System.out.print LOL
🗿
pls help #topgg-api
@crimson vapor i test the code by Number and parseInt but don't work
Is it still appending the two strings?
not print println
lol
I’m 40% sure print works as well
println just prints it on a separate line
what to do?
@obsidian meadow
LOL first time seeing that
saved it
let time = parseInt(args[2]);
let total = time+2000;
console.log(total)
Guys, why i can write in my mobile phone and not with a pc?
@analog imp i well try
if args[2] = 30, the result should be 2030
Ok
@solemn jolt yours might be different as far as how you have your args but that will work :)
@analog imp work thank you
no problem
@analog imp I learn the IT language writing code and re-writing for exercise. How to create a video link with image ( MEE6 plugin but more simple)?
what language are you working in? @sand walrus
like what language are you using
IT language is a collection of types of languages afaik, might be wrong
Can someone help? https://repl.it/join/kqxucznf-alf128mills
Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages: Clojure, Haskell, Kotlin, QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lua, Python 2.7, Ruby, Roy, Python, Node.js, Deno (beta), Go, C++, C, C#, F#, ...
Can someone help? https://repl.it/join/kqxucznf-alf128mills Can someone help? https://repl.it/join/kqxucznf-alf128mills
Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages: Clojure, Haskell, Kotlin, QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lua, Python 2.7, Ruby, Roy, Python, Node.js, Deno (beta), Go, C++, C, C#, F#, ...
Pls
Don't spam
^
Sorry but pls can u
Also you need to tell us what the problem is before we can help
can you tell us what's happening
Error on 158 line
I learn the js code in Html format but i can learn the js lang. In bot programming?
And I don’t know where type my token
do you know that lang
@sand walrus https://anidiots.guide/
start there
@earnest phoenix by putting out that link, you exposed your bot token.
@earnest phoenix at the bottom of one of your files.
Still it's dangerous to expose a bot token.
Even if not owned by you.
alf do you know any programming language
@earnest phoenix hint: Bottom of Moderator Bot
then why do you ask "where type my token"
Is it possible to keep the top.gg page bot's logo different than the actual logo of the bot?
I mean the pfp that shows on top.gg page
try with html/css but why do you want to do that
@wicked sapphire can u screenshot as I can’t find it and @summer torrent I’m knew to editing on mobile
@terse berry the PFP there syncs with your bots pfp
I dont want the bg white color in top.gg page but if I remove that in bot's pfp, it looks bad
@earnest phoenix we won't spoonfeed you. Please go learn language first
I'll see 
I'm not sending a screenshot. That would expose the bot token. Look at the bottom of the file Moderator Bot.
Also, why would you edit your code on mobile?
why on mobile?? and if they say ur bot token is exposed, i would go change it rn. that's should be first priority. people can hijack your bot is why it's dangerous to have it exposed
do i need nitro to create announcement channel?
no you don't need
then why doesn't it show me the "announcement" channel thing ;-;
i cant create one
enable community server first on server settings
ahh
You need create it by computer
bruh m on computer, it only shows me text and voice channels
ye imma enable community server
Enable it

Do u. Know
go turn on developer mode in your settings
I have
you can do it on mobile
you can do it on mobile, enable it on your mobile device
let time = Date.now(1608015143524)
let Y = time.getFullYear(),
M = time.getMonth(),
D = time.getDate(),
H = time.getHours(),
m = time.getMinutes();
message.channel.send(`this server have prime bot for: ${Y}/${M}/${D} \`${H}:${m}\``)
Why this code get me error
we can't help if you don't show error
what's your error?
I found it
It's new Date(timestamp)
Show code
let time = new Date(1608015143524)
let Y = time.getFullYear(),
M = time.getMonth(),
D = time.getDate(),
H = time.getHours(),
m = time.getMinutes();
message.channel.send(`this server have prime bot for: ${Y}/${M}/${D} \`${H}:${m}\``)
This code
How can I catch a ContextException in my unban Command (Java)
It is thrown whenever the ban is unknown
yet I can't seem to catch it
Exception 'net.dv8tion.jda.api.exceptions.ContextException' is never thrown in the corresponding try block
umm
idk why message.crosspost isnt sending message
if (channel.type === "news") {
console.log("inside")
return message.crosspost()
.then(() => console.log("message sent"))
.catch(err => {
logger.error(err.stack);
return;
});
}```
v12.5.1
why 2 returns?
no permissions
yes
it has tho
apperently not.
¯_(ツ)_/¯
Delete the channel and remake it
Clone it?
if i try to start a giveaway with my code it says that "start" is undefined or something here is my code AND the error https://pastebin.com/tVfadYsS
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.
@solemn jolt also what are you trying to do? Get how long a bot has been in a server for?
hi
i have a question
in
ctx.channel.purge(limit = 1)
is there a way to delete a certain message to that limit
if i use the the check attribute it just checks if the latest message is equal to that
so how can i delete the message even if it isnt the latest message
@vale garden idk but maybe something with args[0] and that the arg have to be a message id?
amd then maybe delete it with the message id?
idk
its just something i think
someone has a answer?
what is this?
that's a code snippet
client.giveawaysManager.start start of undefined
client.giveawaysManager isn't defined
how can i store a tempban/tempmute in a ddbb?
when the tempban/tempmute is triggered, you could make a function to send the info to the db
so how can i fix that?
look at the documentation for that package you downloaded
i will look into it for a sec but
i don't see giveawaysManager defined anywhere
const start = require(`discord-giveaways`)
you have it declared as start
woops
thanks
and
nvm
thx
@analog imp i have this now and it still gives the same error
did you read the documentation for it on github?
yep
ok
Klassien is typing......




