#development
1 messages Β· Page 1021 of 1
What is cow?
It gives milk
@regal raven yup calling the cops
lmao
π
if you read the table above it kinda makes sense in a way it doesn't make sense
if you read the table above it kinda makes sense in a way it doesn't make sense
@calm saddle still impossible to make a bot with it
there are actually people that write stuff in COW
its possible but you work on a way lower level than the regular languages
not on Binary level but still down there
daym those ppl have a lot of brain cells
ikr
i barely have 10
Im losing 10 per minute while reading this https://bigzaphod.github.io/COW/
its nothing serious just for having the Balling rights for writing stuff in COW
troo
Im losing 10 per minute while reading this https://bigzaphod.github.io/COW/
@spare mirage LMAAOO
maybe even more
ye same
any language is capable of the same thing any other language is
9 1 1
client.guild.get is not a function
cache.get
How do i use a for loop on everyone who has a specific role in my server? I wanna run db.set(smth) on every user id
<client>.guilds.cache.get();
@earnest phoenix we need<>?
ok
My error + The defeccted line + my command code https://hatebin.com/eqggqrtalq
pls help me guys everything is in the link
roles.cache.find
^
ok thnx
unbans?
@delicate shore for unban let userID = args[0] message.guild.fetchBans().then(bans=> { if(bans.size == 0) return let bUser = bans.find(b => b.user.id == userID) if(!bUser) return message.guild.members.unban(bUser.user)
omly this much?
yes
let bUser
and what is bans.size?
The amount of bans on a server
that syntax does not work for me :-;
Is there any way other than sending a text file for messages with more than 2000 characters?
You mean send multiple messages?
yes
what library you working on, since some libs have it already implememted
like on discord js you can add following flag into the message: split: true
dm who send messages to everyone dm
@spare mirage i am facing an error
here
but if i remove that
then the nxt if command doens't works
have heard of else ifs?
yeah
dm who send messages to everyone dm
dm who send messages to everyone dm
dm who send messages to everyone dm
dm who send messages to everyone dm
what you mean, also spamming it doesnt make us to answer faster
get all users
pgamerx
and use for loop
do u have an args command?
dont help who is restless
like spamming
split message and splice
.split(":")
I HAVE THAT
how to auto update guilds in bots status
anything lol
client.guilds.cache.size
?
it keeps on saying unexpected token
discord.js?
js
it keeps on saying unexpected token
@delicate shore u are missing a bracket
confusion
or something
no
yes
give whole code
it says extra bracket
so just fix lol
if(command === "unban"){
let bUser = bans.find(b => b.user.id == userID)
let userID = args[0]
message.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
message.guild.members.unban(bUser.user)
} }
```
1 tip: command handler
@plucky harness i suggest u to take help from discord.py official server
idk how to
since no python guy is here right now
})
in the line that red dot
u are missing )
and ;
not working
unless spliting
still
command ? you mea command handler
above that line ) add
ok
so
I AM sending my command here
if(command === "unban"){
let bUser = bans.find(b => b.user.id == userID)
let userID = args[0]
message.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
message.guild.members.unban(bUser.user)
}
)
}
if(!message.member.hasPermission("BAN_MEMBERS")) {
return message.channel.send(`**${message.author.username}**, You do not have perms to unban someone`)
}
if(!message.guild.me.hasPermission("BAN_MEMBERS")) {
return message.channel.send(`**${message.author.username}**, I do not have perms to unban someone`)
}
let userID = args[0]
message.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
message.guild.members.unban(bUser.user)
})```
whos code
why
bruh
what's the error now
u cannot use bans before defining it
and dont expect someone will rewrite code for u
:3
I AM sending my command here
@PGamerX#7350
message.guild.fetchBans
ojo
let userID = args[0]
message.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
message.guild.members.unban(bUser.user).then(message.channel.send(embed))
whic
where it says ban is not defiΓ±ed
ok
let userID = args[0]
message.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
message.guild.members.unban(bUser.user).then(message.channel.send(embed))
@spare mirage
use this
dont directly copy lol
wym
Could you not spam like that
sorry
if(command === "unban"){
if(!msg.member.hasPermission("BAN_MEMBERS")) {
return msg.channel.send(`**${msg.author.username}**, You do not have perms to unban someone`)
}
if(!msg.guild.me.hasPermission("BAN_MEMBERS")) {
return msg.channel.send(`**${msg.author.username}**, I do not have perms to unban someone`)
}
let userID = args[0]
msg.guild.fetchBans().then(bans=> {
if(bans.size == 0) return
let bUser = bans.find(b => b.user.id == userID)
if(!bUser) return
msg.guild.members.unban(bUser.user)
})
;}```
;} wtf is this
log args and show me what it says
lol
ok
and it's not that imp
this is imp that why this command is not wokring
JUST LOG ARGS
if(command === "mute"){
let reason = args.slice(1).join(' ');
let user = msg.mentions.users.first();
let muteRole = client.guilds.cache.get(msg.guild.id).roles.cache.find('name', 'muted');
if(!msg.member.hasPermission("MANAGE_ROLES"))
return msg.reply("You need manage roles perms to do this brvh");
if (!muteRole) return msg.reply('I cannot find a mute role. Make sure its named as Muted').catch(console.error);
if (msg.mentions.users.size < 1) return msg.reply('You must mention someone to mute them.').catch(console.error);
const embed = new Discord.MessageEmbed()
.setColor(0x00AE86)
.setTimestamp()
.addField('Action:', 'Un/Mute')
.addField('User:', `${user.username}#${user.discriminator} (${user.id})`)
.addField('Modrator:', `${msg.author.username}#${msg.author.discriminator}`)
.addField('Reason', reason);
if (!msg.guild.member(client.user).hasPermission('MANAGE_ROLES_OR_PERMISSIONS')) return msg.reply('I do not have the correct permissions.').catch(console.error);
if (msg.guild.member(user).roles.has(muteRole.id)) {
return msg.reply("User already has muted role , Brvh")
} else {
msg.guild.member(user).addRole(muteRole).then(() => {
msg.channel.send(embed).catch(console.error);
});
}```
i am logging arga
but this is my mute command
and logs say cannot read property roles
of undefined
idk about mute
ok
π€¦ββοΈ Just log args
i am
and execute the command
oj
@spare mirage [ 's!unban', '@toxic bramble' ]
rhis is what it logs
i randomly pinged anyone for test
ok
i have 7 bans
lemme unba
[ 's!unban', '646247715214458890' ]
this is what it logs
and it's not unbanning
whats the heck is ur args var
??
???
whats ur prefix const or let or var
shouldn't matter as long as it is defined in the correct area
poko
:3
justii correct me if i was wrong but were u the one crying about how hard command handlers were less than 24 hours ago
oh
its aight man everyone starts somewhere
yeah
never give up ~Justii
ok
I wrote this sometime ago and i think it looks pretty nice. i think every bot should have one
@spare mirage my bot won't reply if we enter invalid user
to what
use try catch ?
^
@delicate shore match user and if no user found return
o
how are u finding user tho
args[1]
if (!client.users.has(args[1])) return; ///...
ok
how to change perms
like of command is run
s!lock
it changes perms for everyone to not send message
in that channel
and since many users has a space in their name that thing fails
if (!client.users.has(args[1])) return; ///...
args.join
what is command for override perms
Β―\_(γ)_/Β―
if(isValidCommnad(message, "addrole")) {
let args = message.content.toLowerCase().substring(9)
let { cache } = message.guild.roles;
console.log(cache)
let role = cache.find(role => role.name.toLowerCase() === args)
if (role) {
if(message.member.roles.cache.has(role.id)) {
message.reply("You already have this role!")
return;
}
if(role.permissions.has("ADMINISTRATOR") || role.permissions.has("KICK_MEMBERS")) {
} else {
message.reply("Role not found!");
}
}
});
Can somebody help me what's the error here? At the last ) it says Declaration or statement expected
^^^ ^^
how do i get a channel by id and send a message there in js v12? i only know how to do it in v11 
docs
guild.cache.get()
how to change perms for a channel
handle like map
for everyone
ok
i don't think ur missing brackets
or any that i could see
but what is the ); at the end for?
oh lol i read that twice
check the error :
@delicate shore channel.overwritePermissions
ok
channel.overwritePermissions then?
lol
how to select which role and which perm
wait
channel.overwritePermissions([
{
id: guild.id,
deny: ['VIEW_CHANNEL'],
},
]);
smth like that idk
idk what all you have going on in that whole script since u only sent that one portion @fresh hatch
waht
}}
so add another } i guess
//Add role command
if(isValidCommnad(message, "addrole")) {
let args = message.content.toLowerCase().substring(9)
let { cache } = message.guild.roles;
console.log(cache)
let role = cache.find(role => role.name.toLowerCase() === args)
if (role) {
if(message.member.roles.cache.has(role.id)) {
message.reply("You already have this role!")
return;
}
if(role.permissions.has("ADMINISTRATOR") || role.permissions.has("KICK_MEMBERS")) {
} else {
message.reply("Role not found!");
}
}
}
how to hosting discord bot
thats still just the one portion
add another }
i poor
lol
@earnest phoenix youtube exists
how to hosting discord bot
@earnest phoenix pls help me :'v i poor people
node
hmmmm
@earnest phoenix if u dont wanna pay for hosting you can just run the bot on your own personal machine or use like heroku or glitch or whatever the cool kids use
i use node
i have wooden pc :'v
hmmmm
use heroku or glitch then
okey thx
U dont even need a "good"pc
to host a bot
I fkn host mine from an intel core i3 4th gen laptop
discord.js caches everything which makes it slower for large bots so u need a good pc at that time
small bot
and its not that slow
yes
so you'll feel the pain eventually
I fkn host mine from an intel core i3 4th gen laptop
@spare mirage :'' okey
i leech off my friend and pay $0/month for VPS
its pretty sick
windows server 2016
:/
channel.overwritePermissions([
{
id: guild.id,
deny: ['VIEW_CHANNEL'],
},
@earnest phoenix guild id ? but i wanna change for a speicfic role
specific role
but only for a specific channel?
Hi
what are you talking about?
?

like u say s!lockdown
so bot will override perms in channel
shouldn't be that hard
and don't allow everyonr rot ype
but i am not getting i t
@earnest phoenix so .
i'll try something out
ok thnx
belongsTo is not a function help pls
boeing can u belp?
send the screenshot of ./models/usertimes.js lol
help*
what thing
the lockdown
its the error
that thing is not a function
than what is?
@delicate shore i already told u i cant help in such things
go to discord.js server
i never did that
ok
@wheat hornet can u send screenshot of ./models/useritems.js
ok
13 day
-botinfo 714818987539562519
hmmm
module.exports.belongTo = ()=>{}
I'm pretty sure you have to do Sequelize.import("path to the model"); so you can work with the actual Model object
And not a function which represents it
sequelize.import is depriciated now
@winter basalt are you having fun?
it is? Well I haven't worked with Sequelize in quite a wihile
@restive pebble thx it help
yea lol u didnt defined the name
That doesn't fix anything, you are just calling a function that doesn't do anything now
does anyone knows some good equalizer for windows 10?
hmmm
@delicate shore i dont think i'll sucess
first thing ur bot is not here ig
lol
enjoy lol
brvh
bruh
7 bots then
@wheat hornet boeing muted
why?
internet
;-; need help
Be patient
and read the docs
im tryna get my bot to fetch info about a banned user
what language?
d.js
message.guild.fetchBans()
ik but one specific member
I think u have to grab the userID
im having a bit of a security issue with something.. when I do mywebsite.com/users/userID it logs u right in without having to put ur password and stuff in. any ideas how I can fix this? I'm looking at express-session, and thats kind of confusing me.
const List = await message.guild.fetchBans();
const User = List.find(user => user.id === 'ID');
this not working
; - ;
fetchBan()?
s
message.guild.fetchBans()
still not helping justii, its a promise which returns a collection
oh yea
kk
i got it
all i needed was a glass of water and another good look at the docs
thnx
all i needed was a glass of water and another good look at the docs
@calm saddle thats all u need for an awnser to some questions
lol
in djs12, is there a way to compare 2 random math calculations to know which one is greater or if they are equal
yes, just a gazillion ways probably
you want to get the biggest number out of 2 numbers?
or what do you want to do with them?
for example Math.max(10,20) will return 20
Is there a way in discord.js I can check if a message contains a word from a .txt file and deleted it if its the same
I'd just asume it would be message.content(${file.txt}) message.delete
ok
i need help with something very basic
use const in your case
let splitCommand = fullCommand.split(" ");
let primaryCommand = splitCommand[0];
let arguments = splitCommand.slice(1);``` here arguments hold the single string value after the command.. like when i type !yt Leo Messi, it holds the value of only Leo and ignores Messi, what do i do make it hold both the values?
why using var if youre not going to modify it
i have no vars at all in my code, just let and const
using var for everything is stoopid
@graceful dock const and let are vars too
const are not variable
sort of
error: sequelize.define is not a function
@wide sage arguments contains the entire array minus the first item, if messi is being deleted, then the problem is elsewhere, that code looks correct
π Const π isπ aπ varπ uπ cantπ changeπ
let and const didnt exist a few years ago
so its normal to call everything variables
anyone gona help me
yes but a few years ago is not the present
and it would still work
using var for everything is stoopid
@graceful dock
why use const if u can use a var lol?
WTF
they are still called variables regardless, because the word variable is what all programming languages use, independent of functionality
ok im loosing brain cells
even js websites and information pages call them variables
for example Variables defined with const behave like let variables, except they cannot be reassigned:
and The let statement declares a block-scoped local variable
google js guide
its because i hacked google
wait
big brain
Using const & let is way more readable as well
@wheat hornet show how you use that function
I bet u have some problems if u cant read
V A R
Yes but for the js kids, var are γγγ
never mind, too much files
i use let everywhere because its shorter than const
not the same
By readable I mean you know that a variable can't change.
var is just old
scuse us js kid
var is only there to keep compability with older scripts
js modern generation
they could just delete var if it was useless
Var is useful in some contexts just like const and let
var still has its uses, for example, makes conditional assignment easier inside functions
:3
No, that would break thousands of old unmaintained scripts
it would break internet explorer :^)
bye roblox kid
Hey i have a problem... Can someone help me?
(JavaScript)
Code: ```js
let data = ops.active.get(message.guild.id) || {};
ERROR:
```json
TypeError: Cannot read property 'active' of undefined
at Object.module.exports.run (/root/BOTs /Lorion/commands/play.js:31:18)
at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5)
define ops
I don't have a single var for @earnest phoenix lol
I already have that. That is not the problem
I think this channel is English only
Sry Google Translate xD
module.exports.run = async (bot, message, args, ops) =>{
That's the way it should be, right?
depends on your command handler. does your command handler pass ops after args?
Actually already.
I swapped args and ops. Now the mistake is coming
TypeError: Cannot read property '0' of undefined
at Object.module.exports.run (/root/BOTs /Lorion/commands/play.js:20:11)
at module.exports (/root/BOTs /Lorion/events/message.js:28:9)
at Client.emit (events.js:310:20)
at MessageCreateHandler.handle (/root/BOTs /Lorion/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/root/BOTs /Lorion/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (/root/BOTs /Lorion/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/root/BOTs /Lorion/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/root/BOTs /Lorion/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:310:20)
at Receiver.receiverOnMessage (/root/BOTs /Lorion/node_modules/ws/lib/websocket.js:789:20)
The message event?
do you even know what you are doing?
Nah xD
lol
Not always xD
if you dont know what the fuck you are doing, learn js and discord.js before doing bots
an music is very hard to do
ty justii it works now
I can do JavaScript, but I haven't had school for 5 months and I'm slowly getting more Brain AFK
...
How do I get the Bot as a Member instance for a Guild
ty
please uninstall roblox
@graceful dock nah
Why would I
if roblox is bad
discord is bad
20% of discords population plays roblox
if(!message.member.hasPermission("DELETE_MESSAGES")) {
return message.channel.send(`**${message.author.username}**, You do not have perms to do this`)
}
if(!message.guild.me.hasPermission("DELETE_MESSAGES")) {
return message.channel.send(`**${message.author.username}**, I do not have perms to do this`)
}
How can i make a play command with youtube links?
And how can i make the command?
Β―_(γ)_/Β―
how is that not working?
@spare mirage v12?
any errors?
guys it should give me the displayavatarUrl but it dont
yes
avatarURL
@earnest phoenix
@spare mirage not hasPermission its should be permissions.has
Really?
yes
in v12?
@earnest phoenix i should use avatarurl?
yeah?
u sure
TRY
okok
@cobalt spruce yeah avatarURL
@earnest phoenix it wont work
@cobalt spruce v12?
@earnest phoenix yes
@restive pebble fixed it user.displayAvatarURL({dynamic:true})
avatarURL()
RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number.
at Function.resolve (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\util\BitField.js:150:11)
at Permissions.has (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\util\BitField.js:45:28)
at Permissions.has (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\util\Permissions.js:45:85)
at Object.execute (F:\Users\Edwin\Desktop\Banana\commands\purge.js:9:32)
at Client.<anonymous> (F:\Users\Edwin\Desktop\Banana\index.js:35:35)
at Client.emit (events.js:314:20)
at MessageCreateAction.handle (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (F:\Users\Edwin\Desktop\Banana\node_modules\discord.js\src\client\websocket\WebSocketShard.js:436:22) {
[Symbol(code)]: 'BITFIELD_INVALID'
whats this
@blazing ravine Davetleri gΓΆremiyor galiba
evt
ama return olmuyor
when invites undefinend not return
koda bakabilirmisin
it's MANAGE_MESSAGES
oh wait what
members that have manage messages can delete messages
okok
there's no such thing as delete messages permission
ok didnt know lol
https://discord.js.org/#/docs/main/stable/class/Permissions?scrollTo=s-FLAGS this will help you
:3 thanks!
How do i make a map of fetched messages contents and author's?
collection#map()
ποΈ
Yeah got that already
so what's the problem
How me do author too?
message.author
you want an array of {content:content,author:author} ?
Yeah
messages.map(message => { return { content: message.content, author: ...message.author }; })
not sure
this is probably wrong
I'll probably figure it out
.map(msg => ({content:msg.content,author:msg.author}))
I need help
@earnest phoenix Keep this channel english only, this isn't the first time
@flat pelican Ok,sorry.
They're all undefined hahahahahahahahahahahahahahaghahahahaha
-help
Probably because "//say" is 5 characters long and you try to get a substring starting from 4th character
Yo this is pretty funny
If you look at the second image and read the text on the first line
You will see words, and the order these words in is called and error
If you read them you might find out what's wrong
cant find inviter
:galaxybrain:
@blazing ravine you're defining inviter in itself?
wdym
bot.on("guildMemberAdd", async member => {
let wChan = db.fetch(`${member.guild.id}`);
if (wChan == null) return;
if (!wChan) return;
member.guild.fetchInvites().then(guildInvites => {
const ei = invites[member.guild.id];
invites[member.guild.id] = guildInvites;
const invite = guildInvites.find(i => ei.get(i.code).uses < i.uses);
const inviter = bot.users.cache.get(invite.inviter.id);
if(invite.uses == undefined) return member.guild.channels.cache
.get(wChan)
.send(
"π₯I can't find who Invited " + `${member.user}`
);
if(inviter === undefined) return member.guild.channels.cache
.get(wChan)
.send(
"π₯I can't find who Invited " + `${member.user}`
);
member.guild.channels.cache
.get(wChan)
.send("π₯" + `${member.user}` + " joined; Invited by " + `${inviter.tag}` + ". Invite code[**" + `${invite.code}` + "**] (**" + `${invite.uses}` + "** Invites).π");
});
check the code '/
idk how t ofix
when i return the udnefined not work
if invites[member.guild.id] doesnt exist, ei becomes undefined
after you add guildInvites to invites[member.guild.id], ei is still undefined
Const inviter = .get(invite.inviter.id)
BRUH
Cache
Eyyyy
hey so i wanna get messages in a channel then log them into a txt/json file but its writing them as [object Object]
var CHmsgfetch = await msg.channel.messages.fetch()
var ticketChnMsgs = (CHmsgfetch.map(m => ({author: m.author.tag, content: m.content})).reverse())
fs.writeFile('ticket.json', ticketChnMsgs, (err) => {
if (err) throw err;
})
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
it logged to the console fine btw
if you're saving in a json file, use JSON.stringify() with spacing options
What about if I'm writing to a txt?
Oooooooo
if you wanna add extra new lines, do it after stringifying
how do i periodically send messages to a user with the ID 503948134439976972 (me)
i tried 503948134439976972.send(""); but it gives an errorrrrrrr
You gotta search for it to be a user object
boeing answered me
he's a g0d
but he's muted
lol
umm its giving an error
if (db.get(`userBalance_718819301737627679.balance`) >= 50000) {
bot.users.cache.get(718819301737627679).send("Hi you got 50k coins? If yes spam DM code913");
} else {
db.add("userBalance_718819301737627679.balance",50000);
bot.users.cache.get(718819301737627679).send("Hi you got 50k coins? If yes spam DM code913")
}```
i was giving coins to someone for winning a giveaway
bot.users.cache.get(718819301737627679).send("Hi you got 50k coins? If yes spam DM code913")
^
TypeError: Cannot read property 'get' of undefined
That will give coins only to the user with ID 718819301737627679. Also IDs are too big to be numbers so they have to be strings "718819301737627679"
Console log bot because it's likely not a Client instance
Are you using discord.js version 12?
update to v12
Alright, I am using basic HTML Coding on Top.gg, When I paste it in there, It is just letters, Can someone explain that please?
use markdown
show me
printscreen
lol
i will eat you
Pretty sure JS isn't allowed
book banning
only OG minecraft players remember
@earnest phoenix you're literally using CSS in formatting text on top.gg
Yes..
and?
so you're basically putting a web page ina web page
that's illegal
wot?
No it's not
<insert meme here>
xD
lmao
im saying whatever
i din't get half the file
but pretty sure top.gg only supports normal colored, bold, italics and other stuff text
use markdown
@earnest phoenix What does the preview show?
aaa now my pc has 3kb less of space you maniac why did you send the file to me!
@hasty sparrow
Remove html, head, body and script tags
that's what you want to do right
so much cringe at wesbites that use captchas other than recaptcha
@hasty sparrow
Remove all the JS
JavaScript?
Still shows like that^
hastebin please
I don't use that.
ty
|| I think thats it ||
||o||||w||||o||
Shouldn't that be good?
i dont know jack about html but where are the script tags around the function at the bottom?
@hasty sparrow Said remove them

Remove all of the javascript
^
It's all java
Haha, no
** java == java
o shit ye
Remove everything after function openPage, including the aforementioned
ah mute over lol
lol
sirpandatelevision (lol how did you get a knighthood) the site popularly known as 'top.gg' does not allow its users to utilize and take advantage of the scripting language known as 'javascript' (which has no relation to the language 'java'). reasons unclear (read the dOCS), but you must observe these rules. have a pleasant day
bruh * deleted his msg *
lol
No need to be rude when others are trying to help you
ah mute over lol
@restive pebble GG
top.
What what means?
you didn't provide a color
the error is 'property value expected'
That's css and the ; is in red because the color is missing a value
o
const { MessageEmbed } = require('discord.js')
module.exports = {
name: "b!ban",
run : async (client, message, args) => {
if (!message.member.hasPermission('BAN_MEMBERS')) return message.channel.send('you canβt ban people');
const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
user.ban().then (() => {const embed = new MessageEmbed()
.setColor('9000FF')
.setTitle("User is Banned :btvpurple: ")
.setThumbnail(`${displayAvatarURL({ dynamic: true })}`)
.setDescription(`\n\n${client.users.cache.get(member.user.id)}, has been banned`)
.setFooter(`Brutal Bot at your service `,message.author.displayAvatarURL({ dynamic: true }))
message.channel.send(embed);
})
}
}
?
@earnest phoenix
what?
: (node:4) UnhandledPromiseRejectionWarning: TypeError: user.user.displayAvatarURL(...) is not a function
v11?
@earnest phoenix #development message thx
wut
error ^^^^^^^^
my code
if(command === "whois"){
let member = msg.mentions.members.first() || msg.member,
user = member.user;
const joinDiscord = moment(user.createdAt).format('llll');
const joinServer = moment(user.joinedAt).format('llll');
let whois = new Discord.MessageEmbed()
.setAuthor(user.username + '#' + user.discriminator, user.displayAvatarURL)
.setDescription(`${user}`)
.setColor(`RANDOM`)
.setThumbnail(`${user.displayAvatarURL}`)
.addField('Joined at:', `${moment.utc(user.joinedAt).format('dddd, MMMM Do YYYY, HH:mm:ss')}`, true)
.addField('Status:', user.presence.status, true)
.addField('Roles:', member.roles.map(r => `${r}`).join(' | '), true)
.setFooter(`ID: ${user.id}`)
.setTimestamp();
msg.channel.send(whois);
console.log();
}```
yes
who is commadn
it gives info
when he joined
his roles
etc
i found thsi tutorial on stackoverflow
stop line spam please
-bash: ./ngrok: Permission denied on my vps
read the docs
but on my pc it works
why await not working?
Likely because it's not in an async function
.setThumbnail(`${user.displayAvatarURL}`)```


