#development
1 messages · Page 1483 of 1
an existent ID
fetch
an id that can be dmed
cache.get or fetch
for responding suggestions
hmmm aight
there isnt much you can do since they might not have dm's open
its going to have to be a try/catch
there isnt a very reliable way afaik to check if a user is dm'able
users.fetch(id).then(u => u?.send(text).catch(console.error)).catch(console.error)```
thats the shortest mess i can think of right now
the virgin console.error vs the chad console.trace
or just log it
whats the point of a trace if most js users dont even know what a trace is or how to read one? 
but
good point 
i wanna check if the number introduced is a valid ID
wrong
o
1 is a valid id
also there are discord ids with 17 and 16 length
ID 1 is clyde
^^
the best you can do is check if tis a number, and then dump it into the API to see if it returns a user
Can you even fetch Clyde
maybe
There are IDs that are few chars in length, but not exposed to the rest API
maybe not
I swear you could then you couldn’t
You can't
IDs that are exposed to the REST API are at least 17 to 19 chars in length
cause i used this for check if the channel's ID is valid
if (isNaN(channelS)) return message.channel.send(':warning:Debes proporcionar una ID, evita usar letras o palabras:warning: **vuelve a ejecutar el comando para intentarlo nuevamente.**');
let CanalReal = guild.channels.cache.has(channelS)
if (!CanalReal) return message.channel.send(':warning:La ID proporcionada es inválida o pertenece a otro servidor:warning: **vuelve a ejecutar el comando para intentarlo nuevamente.**')
welcome to wendies, how may we help you today?
Did you realize that if statement would always pass right
Because IDs are strings
hes using it on user input i think
why you even doing that though?
/^\d{17,19}$/.test(<User input>)```
message has a mention input
like this #development
its much easier to work with since im fairly certain discord sends you the channel its in
not mention input
but why?
it uses the channel's ID
why?
just get the channel id from the mention if that's what you want
idk i just made that
i want to take a user's ID !
then use user mentions
second, if you are fetching info about a channel in a different server, thats not cool
i'm not.
You can make it work by both mentions and IDs
the only reason why you would use id's realistically is to use another channel thats not in the guild, otherwise its much better to use mentions. To grab a channel ID you need to have developer mode on, which most users dont. However, mentions are enabled by everyone by default
Just get the channel from mention or get the channel from cache by using ID
And check if it's valid
alright, time to eat and then code until my fingers or my eyes give up again
sounds like fun
How do I create a new package in JDA
How to change bot permission
i feel like you should maybe clarify your question more 
its in the dev portal
How?
or use a permissions calculator
and change it in the url
Can you code my discord bot? I need it to Mod Dream Utilities
na, can't u code it yourself
Nope. I can't find a web/app to do it.
@earnest phoenix
Hi
what
dont ask to ask
I don't know how. @earnest phoenix
Sorry
I need to detect if user is in HypeSquad Bravery team, how to make it?
Btw iam beginner
Me?
and u
 English
Guys,WHEN I DEV PORTAL as mobile: (save button go down and hide
When i use destop site,no save buttom
:D im so stress
🙂 🔫
@shrewd hazel https://discordapi.com/permissions.html
Guys how to handle Discord Missing Perms? When SEND_MESSAGE is disabled?
there is no any save button
uh
use discordapi calculator
wdym with that?
@earnest phoenix? It's Discord.js & English
@opal plank then are im just gonna copy the link?
I have if (!message.guild.me.hasPermission("SEND_MESSAGES")) return; in my code but when I disable the bot's permission to Send Messages it gives me an error, (node:2504) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions. How could I possibly solve this issue so I won't get the error when my bot cannot send messages into a chat.
oh right
try if(!message.channel.me.hasPermission("SEND_MESSAGES")) return;
Ok
because the bot probably got send messages perm but if you use the command in a specific channel where the bot can't send messages
Yes channel has perms disbaled.
the code wouldn't return cause their role has that permission
Blc mod
Yes
I disabled permission send message then it's giving Discord api err missing perms.
Me who just new dev:😵What you just say?
Else it's fine
try this: if (!message.guild.channel.me.hasPermission("SEND_MESSAGES") return;
I want to remove the perm because when they see how many perms needed they will decline me
100% predicting
Use the perms calculator on discord dev
Ok
and then update the link with the new perms
What link?
Ok
all you have to is update the number
at bot&permissions=
with the new perms number
That's Adminstrator permission
Topgg doesn't allow
uh?
With Adminstrator permission bot works fluently
Hmm
oh wait what's the number 2?
i mean perm
wich perm
It's hidden probably
No its just too long
oh
my bot uses admin perm
I scared if too many perm or adminis they will decline me
But i need those to make sure they get max peform
only if your bot needs any innecesary perm to run any command like admin to run help command
my bot is already on top.gg
Last time
bruh
that's because you make it request any permission for any command that doesn't need it
an example is : "Admin is required to run help command"
What command needs adminstrator permission dude?
Nope
setprefix maybe?
How to Add blc mod bot on my server
It's user who require Administrator permission. Bot help command works
._.
I Know
I Am Owner
@mellow kelp >:c
Nope Setprefix works without Adminstrator perm
I use variable as set prefix
ok, so
Im big brain
i mean, the bot maybe require that perm to attach files, attach embeds, delete messages, kick and ban members, and some stuff more
uh
@mellow kelp come here
!
that's because the bot has reached 100 servers without verification
You must aply for verification and wait for the bot gets verified
then you may invite the bot for more servers
xd
join here
if you have questions about verification
how can i add connection check for this code?
/*Get the players.json*/
const getPlayers = async server => {
try {
return axios.get(`${server}/players.json`, { responseType: 'json', timeout: 10000 });
} catch(e) {
console.log(e);
}
};```
i meant like if(e.status=404){channel.send} but i dont know what is the true one for this
Im new,i just know basic,im dumb,everyone knoe it
pass channel into the function?
use cron jobs
function math(x, y, op) {
return(eval(x, op, y));
}
console.log(math(1,2,+));```
how can i like run the operation
so like whatever the operation is, it does it
wdym?
joining two or more strings
switch statement?
search about switch statements
so basically just ifs?
o ok
like a long else-if chain but optimized
i mean i could do that
but i wanted to see if there was a way to do it like with the var
but alr
wdym var?
well you can't pass operators as values
mhm
they're special syntax 
shit
alr
uhh its not working
function count(array) {
let list = 0;
for (i in array) {
if (i === true) {
list += 1;
console.log(list);
}
}
}
count([true, false, false, true, false]);```
u got any ideas why?
well
basicaly trying to log the amount of times, true shows up in list
- i think you can't use 'array' as variable name
- it should be
for (const i of array) {
and some other stuff
to add 1, you can just use list++
and you don't need to check if i === true, just use if (i) {
but if its false?
you can
function count(array1) {
let list1 = 0;
for (i in array1) {
if (const i === true) {
list1 ++;
console.log(list1);
}
}
}
count([true, false, false, true, false]);```
still giving problems
you're declaring a variable in that if
i told you to add the const in the for loop
and it's for/of, not for/in
wait what
the const should be the list?
i declare list on the top
as the num 0
WHAT
WHAT
basically you don't put that const there
function count(array1) {
let list1 = 0;
for (i of array1) {
if (const i === true) {
list1 ++;
console.log(list1);
}
}
}
count([true, false, false, true, false]);``` this is my current code
const/let/var is when you're declaring the variable for the first time
bruh
function count(array1) {
let list1 = 0;
for (let i of array1) {
if (i === true) {
list1 ++;
console.log(list1);
}
}
}
count([true, false, false, true, false]);```
yes
okay that should work
alr
and how would i like take it out of the for loop?
wut?
but false isn't true

the if condition won't apply if the thing is false
thats another thing
but imagine it as this:
if i is true:
it would be
if(true){
wat?
sorry, im fairly new to js lmao
if i == True:
if (i === true) {}
if the value is false, the if block won't execute
ye
the second one is js, and is wat im doing
the undefined thing you mentioned is another thing
but in js you can omit that === and it will booleans it
yeah
nice
anything that is zero, undefined, null, and empty string will be false
thats the point of an if statement
yeah js has these "falsy" values

wdym?
list1 ++;
console.log(list1);
}```
you return list1 after the loop
why not xd
what's the code?
function count(array1) {
let list1 = 0;
for (let i of array1) {
if (i === true) {
list1 ++;
}
console.log(list1);
}
}
count([true, false, false, true, false]); ``` with it fixed
with the if (i) ```1
1
1
2
2````
wit
gimme a min
1
1
1
2
2```
this is output with the if i
yeah thats how it works
the result is 2
Hi, im trying to replace some characters inside of array, any hint?
// INPUT:
let arr = ["-Hey-","-Hello-"]
// WHAT I NEED:
["Hey","Hello"]
pog works
String.replace
try removing the first and last ones?
with regex
i tried looping using replace but on a loop it only removes 1 of the chars
?
can i do a forloop for the num of a array
like replace(/g/-, "") ?
use for in
or something like that?
no
so like for i of (list of amount of things in array)
oh
why /-/g?
/regex-here/flags
What does the G means?
the g flag is for global search
can i do a forloop for the num of a array so like for i of (list of amount of things in array)
yeah
for(const i of list)
nope
ye ik
thats for in
like i want the number of it
so like i would be the index of it
for in is for objects
so the list
would be a array of numbers
then use a regular for(let i = 0; i < list.length; i++) {
yeah
i is the number?
TYYYY
oh yeah that works
alr pog
so you can use list[i]
cya
is it worth switching my bot to typescript after most of it is done?
From js?
Typescript is literally js
then why do i have 76 errors
Js code = typescript
But typescript isn't js
JS does not directly = typescript
you don't have to use the typings
ts == js
js != ts
ts !== ts


dont have to use it, correct, but whats the point then? What you are using is basically js at that point
{
"noImplicitAny": true,
"allowJs": false,
"strict": true
}
There, now you part of the cool kids gang
you are writing js code, in ts, to transpile to js, with extra libraries and compilers bloating your workspace, for what? lol, the intellisense comments instead of the jsDocs? xD
@pale vessel how do i dm someone http style
the main reason was that it is compiled which means it catches the errors at compile time
get their dm channel
wait
you don't realize you forgot to pass a number or a string when your bot is already in prod
or that you accidentaly reassigned a const
^^^
dm channels use seperate ids from user ids?
yes
W HY
there should be a method for doing it
go make discord better
@pale vessel so once i initiate a dm, how would i retrieve it for later
you cache it
aaaand when the process exits?
whyyy discord whyyyy
yes
because yes
What?
ehhh sistem of economy?
friend do you have the work command for an economy system?
Just increase the amount of money stored in the db
ehh I have no economy I want to start one on mi bot
@pale vessel how would a make a file safe to send
wdym
how do i make a data string
if i do then why would i ask
So you wanna send a dataString or make a dataString ?
Need help again can I ask?
make one to send?
ask in #general or #general-int
you didn't add votes
How to Handle this SEND MESSAGE disabled missing permission.?```
Any help is appreciated.
oh sorry I didn't see it's the dev channel
Nope
try catch and nothing will break
Already did
Use .catch
I just want to handle missing perm for send message
Try-catch won't catch inside promises
can you show the code in a usual code Block please it hurts my eyes
at RequestHandler.execute (E:\OneNaut\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (E:\OneNaut\node_modules\discord.js\src\rest\RequestHandler.js:39:14) {
method: 'post',
path: '/channels/792743596021121054/messages',
code: 50013,
httpStatus: 403
}``` Err
can you show the rest of the code not the error
He has
if(!message.guild.me.hasPermission("SEND_MESSAGES")) return;
so the code should've worked
well it didn't so just catch lol
let helpingEmbed = new Discord.MessageEmbed()
.setAuthor(client.config.FOOTER_BOT_NAME)
.setTitle(${prefix}${cmd.name})
.setDescription(Description: ${cmd.description}\n)
.addFields(
{name:"Usage:", value: ${prefix}${cmd.usage}, inline:true}, {name:"Aliases:", value: \${cmd.aliases}, inline: true},
{name:"Cooldown:", value: ${cmd.cooldown/1000} seconds, inline: true}
)
.setColor(client.config.SUCCESS_COLOR)
return message.channel.send(helpingEmbed)
pls code block
@earnest phoenix hey bro put the whole code in if the hard way
they didn't check for channel overwrites
you can just check for channel overwrites if (!message.channel.permissionsFor(message.guild.me).has("SEND_MESSAGES"))
oh hell
How to do
Look up
Does any ts guy, know this?
I've isRajrishi getter on Piece which always returns false. But on Rajrishi which extends Piece has a getter which always returns true.
yes it does
o
Well
I think you should use instanceof instead
I dont think a getter that always returns the same think is a good idea
so should I create a boolean member, instead on Piece?
What lang is that?
Js
ts!
Ah, that explains the different stuff I'm seeing there
Advanced concepts around types in TypeScript
Actually, what a type predicate is?
It determines if an object is of a certain type
Its on the docs you sent
But since you're working with classes, instanceof should be fine
hmm, lemme see
how can i add connection check for this code?
/*Get the players.json*/
const getPlayers = async server => {
try {
return axios.get(`${server}/players.json`, { responseType: 'json', timeout: 10000 });
} catch(e) {
console.log(e);
}
};```
i meant like if(e.status=404){channel.send} but i dont know what is the true one for this
Can Anyone tell me how Can I program the bot that the bot send message by choices? JS
what do u mean? What choices
ooh!, keep a array of your text messages. Get a random index within the array and access the array with it.
And Boooom!
@rocky hearth amm can you send me a little code sorry for saying
const myTextMessages = [];
const randomMessage = myTextMessages[Math.random() * myTextMessages.length | 0];
oo thanks
the | 0 removes the decimal places, so u hv a numeric value
ok thanks
@rocky hearth I am a biggner
const Command = require('../Structures/Command.js');
`module.exports = class extends Command {
constructor(...args) {
super(...args, {
aliases: ['hallo']
});
}
// eslint-disable-next-line no-unused-vars
async run(message, args) {
const myTextMessages = ['hello','wassap'];
const randomMessage = myTextMessages[Math.random() * myTextMessages.length | 0];
}
};`
Is this code okay?
Its ok, u can also use, Math.floor(), if not comfortable with | 0
@rocky hearth bot is not responding
Whaat?? Do u know, how to send messages in a channel?
The above code is fine, but you're not sending the message to any channel
probably not, he obviously copied all of whatever code he has now 
@rocky hearth message.channel.send
2020-12-28T07:52:49.870319+00:00 app[worker.1]: ^
2020-12-28T07:52:49.870319+00:00 app[worker.1]:
2020-12-28T07:52:49.870319+00:00 app[worker.1]: ReferenceError: config is not defined```
define config
ha
that should ALWAYS work

cuz thats a string
'1234' !== "hehe im a string" will always return @earnest phoenix
config.guildid is just a random string, you arent getting the actual value
you need to eval the string /s
👀
i need load string from config.js

let config = { guildid: '1234' }
if(message.guild.id !== config.guildid) return // this returns if '1234' is different than '1234';
if(message.guild.id !== "config.guildid") return // this returns if '1234' is different than "config.guildid"
does that make sense?
import express from "express";
let app = express();
import indexroute from "./routes/index/index.js";
app.use("/", indexroute)
app.listen(3000, () => {
console.log("App started on port " + 3000)
})``` my index file ```js
import { Router } from "express";
const router = Router();
export default () => {
router.get("/", async (_req, res) => {
res.send("Hi there");
});
return router;
};
``` my index route file
the site starts up but the page doesnt load
your express ap starts without any error?
if (message.guild.id !== "config.guildid") return;```
not work

console.log(client.config.token);
you made your config a string
ihave
yes but you want a string from your config
oof
"guildid": "582498581395800064"
}```
already
Yes i solved it now
You're not getting the point here.!
You're checking message.guild.id with a string that is "config.guildid". Which will always return true.
And your code underneath never gets executed.
To fix it, remove the double quotes from "config.guildid"
Hi, where is problem? member.guild.channels.get('792896021935947806').send("Welcome")
what did you want to do?
That channel might not be in cache.
Always get a channel with a id, from the fetch method.
yesnt
if you use the same channel over and over. fetch the Channel once on Bot Startup and then get it from the cache
by default, fetch method already, first try to get the channel from the cache.
obviously, which can be override
if you fetch all the time you can spam the API at some point. and Discord.js forced the entire Cache thing to reduce the load on the API
As I said, fetch dont actually always fetch the channel.
It first tries to get the channel from the cache
if you dont disable it
(you) he's right. stop it. get some help. (for those whose are using #cache.get() instead of #fetch())
how can i turn a emoji to a image in js?
u mean the discord emojis?
ye
That's not possible, as I can understand
but there might be some way, of the regular (device specific) emojis
thats possible
you can download the emoji from the URL you get from the Emoji thing
that url is for custom emojis
use a parser (like twemoji-parser in js) for twemojis and regex for emojis (https://cdn.discordapp.com/emojis/id.extension)
hey i had a question.
I actually planned to buy a vps off at galaxygate.
however, i planned to do it using paypal.
once at the check-out page, I had to link a cc to my paypal? I don't even have a cc.
you should ask this in galaxygate support server
also this isnt related to development.. at all
what i want is a command like /emoji 👍 that sends a photo of the emoji
why photo of emoji?
why not
brojs const [emoji] = require("twemoji-parser").parse(content, { assetType: "png" }); send(emoji.url);
literally
discord emojis are photos already and utf emojis work where photos don't
and for custom ones?
for custom, they are already an image
<Emoji>.url to get the url for it
hello
my embed images look like duplicate
how i can fix
left is original image
and right is image in embed
Guys need little assistance. let Message = args.slice(1).join(' ') || "Message"; I have (args[0], args[1],args[2]) I want to get message from only args 2 and beyond till limit 30 words.
aaaah ok thanks and how can i know if the emoji is a custom one?
every, custom emoji has a url. If its undefined than its not a custom emoji
so let emote = client.emojis.cache.get(emote_here)?
because that is undefined
idk if its possible to get the emoji from the message.content!! 😦
use regex and get the emoji id
regex?
I once tried to log the message.content, and it was showing white boxes on place of emojies.
So I doubt, if the content actually has emoji.id
that's unicode emojis
you use a parser for them
they're talking about custom emojis
(node:3024) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined
at MessageAttachment.setup (/rbd/pnpm-volume/3aa01355-32f2-40ec-8c97-6f9441e81801/node_modules/.registry.npmjs.org/discord.js/11.6.4/node_modules/discord.js/src/structures/MessageAttachment.js:30:20)
at new MessageAttachment (/rbd/pnpm-volume/3aa01355-32f2-40ec-8c97-6f9441e81801/node_modules/.registry.npmjs.org/discord.js/11.6.4/node_modules/discord.js/src/structures/MessageAttachment.js:22:10)
at DabiClient.nsfw.real.thighs.then.json (/app/komutlar/nsfw-thigh.js:10:22)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:3024) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)```
ooh yes, ur right
MessageAttachment v12 how do i do v11
javascript

v11 bad
how will i transform
use v12
so if args[0] is :sent:49023932829229 why not only take the id part
sure
you can use a regex replace
regex = regexp = regular expression
string.replace but instead of providing a string as the search, you'd provide a regular expression
:sent:49023932829229 is this what ur able to log to console?
python be like: re = regex = regexp = regular expression
r
AAAAAAAH
BBBBBBBBH

Guys need little assistance. let Message = args.slice(1).join(' ') "I want to get message from only args 2 and beyond till limit 30 words.
any help is appreciated
30 words or characters?
args.slice(1, 31).join(" ")
doing a regex if the emoji name contanis a number it brokes all the command
emoji names can have numbers in them
yes
\D matches non numbers
:pog69:420691337
would replace to 69420691337 which is incorrect
you're not supposed to match the emoji name
you're supposed to match the message content
and why does it break the command? what is the error?
message content could still contain numbers. If someone sliced that string out of the content just for easier pick-apart, it should have more benefit since less string testing
how
Or just /(:[\w\d_]+:)\d+/g
pretty sure you only need \w
there is something missing there or is just me
that includes digits and _
I forget if string.replace only replaces the capture group if there is one or if it replaces the entire regex match even if there is a cap group
\w does not include digits or _ last I checked
same error
Clublog is not working for me with Brawly Bot??
isnt easyer only take the args between : and >
I dislike how they specify ID lengths since devs can arbitrarily insert IDs into the database
let emote = await client.emojis.cache.get(disc.Util.parseEmoji(args[0]).id)???
emoji snowflakes are up to 19 length now?
Yeah. They overflowed a while back
hey how to the following properly
a = message.embeds.footer.content.split(" ")
command finished thanks guys
@pulsar bone what are you trying to do
Why did my bot get kicked out the server ??
all bots did
#site-status @umbral sentinel
There were many servers who only contained bots and it was used to increase their member count. So Discord is developing a 50 bots rule and maybe some Dev contacted the owner of this server
i heard it was only bots with slash commands
I disagree
it was probably because it was not sustainable
top.gg relied on presence_updates to show all bot's online status on the website
and discord has a limit on guild presences, usually like 50k or something
they got discord to increase this limit for top.gg like twice i believe
but it was not a sustainable method, so they just dropped it altogether
read the footer of embed and put the third word of that footer in a variable
a message can have multiple embeds
so message.embeds is an array
also footer doesnt have content, it has text
so what to use
the uri has to match any of the redirect uris on your oauth2 tab
like i making a dashboard its going great till now
i wanna know like how to fix it
yeah well make sure you use redirect uris that are on your list
i did is the matter with that my dashboard aint on webserver
its a local host
just add localhost to your redirect uris
on your discord developer portal, go to OAUTH2 and add the exact url you redirect to
for example
you see i have for the local environment and the online one
like this
aah got it
rip same erorr this
this is the eroor
@boreal pewter
thx to help
you have to include the same route
the uri must be exactly the same as the one on your query params
did that
/authorize/callback ?
ye
yeah
it never works?
@low orbit you'd have to fetch the bot's guilds too, and use then to filter stuff out
Sometimes I regret using type annotations.
def punishment_info(self, guild: discord.Guild, role_involved: bool) \
-> Union[Tuple[Optional[discord.Role], str, str, Optional[discord.abc.GuildChannel]],
Tuple[str, str, Optional[discord.abc.GuildChannel]]]:

explain how it's not working
hey guys how to read embed footer text
does it not do what you expect it to do? Any errors?
embed.setFooter('My footer')
read = reading which you haven't done while answering
o
Wdym??
what actually happens
i think what you want is embed.footer
When I Run gg!report IT does litterly nothing
hey how to do the following properly
a = message.embeds.footer.content.split(" ")
what do you mean by properly
it gives error
probably because message.embeds is an array
@cinder patio You Got Any Solutions?
and there aren't any errors?
No
so what to do
just grab the first element of embeds
i already told you lol, message.embeds is an array, and footers dont have content, have text
if you dont know how to get a value from an array, read this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
**@cinder patio When I Remove if (message.author.bot) return; From Line 207 IT Just Spams My Messages in The Channel I Gave Id Of ID in Line 209 **
stop using bold text 
Are You Allergic To Bold Text?
apart from that i got no idea why it doesnt work
you said there were no errors in console right?
yo, does anyone here know how long does the refresh token lasts
you mean to delete the message?
no
my code sends a report message to the bot owners channel (my private channel)
but it sends gg!report with it
i want it to only send the message not the prefix and command
id say slice the content starting from the prefix's length
and then use replace on 'report' at the start
yea
so i putthe value of the prefix & command letters in the ()
no
var res = str.slice(0, 5);
the prefix length
...
Like This
var str = "That is like so not cool, I was like totally mad."; var cleanStr = str.replace(/like/g, "");//replace every "like" with blank ""
you sending message back its what you send to Bot
channel.send(message) <= change this line
to your text?
dude it's just javascript
define it... its called args
you dont need to use .find() if you have the id. just use .get(id)
.find() is for when you dont know the id
also why are you splitting the report message, you are turning it into an array
change ReportMessage to args
if all you want to do is use .replace() on it, you dont need an array
what do i write if i have the exact channel id
.get("34756394759")
whats the exact line of code?
...instead of .find() like i said
please learn js
yes
.slice(0, 5)
no
you are giving it prefix.length characters
its .slice(start, end?)
your prefix is 3 characters long, so you have .slice(3)
just increase the character count until it removes also the word report
report is 6 characters long
so 9
you can simply do prefix.length + 6
or 9 directly, if your prefix is never gonna change
or straight-up use message.replace to remove 'report'
remove the 0
the second parameter is if you want to remove stuff from the end of the text
can anyone answer how to read fucking read not send embed footer and do the following
a = message.embeds.footer.content.split(" ")
Tim told you already
before you can read the embed footer you first have to learn to read in general
yeah tried that didn't work
show us how you did it
does anyone know about any way to know the framerate of a gif ?
Fairly certain ffmpeg can get it @old cliff
so i have a currency system for my bot (i just developed it yesterday) and the currency can't save globally
i want my currency to be global
store your data with user ids
i have no idea what quick.db is
oh
I assume you're using discord.js
ty but I got it using https://npmjs.com/gif-me-info
I know 0 JS 
yes
its like
its for beginners
yea


