#development
1 messages Ā· Page 1980 of 1
š
a softban is only useful for clearing messages or getting systems to register as a ban
you're supposed to use actual env variables, not env files
i mean, you can use env files, but you're gonna use the env file with docker, not with node
Thanks!
What happen?
The bot has code grant setting turned on and cannot be invited
is there any better way to create flags with slash commands other than the boolean option lol
its feels clunky af
instead of
/mycommand
/mycommand --do_thing
you have to do
/mycommand do_thing: True
It seems even more clunky but you could add a flags option as a string
/mycommand flags: āādo_thingā
yeah i already have that under a separate command
i have an entire command to execute old style commands
i have 20 different options, and like 15 of them use autocomplete lmao
i wish discord cached autocomplete responses
so i dont have to answer every single one of them
can anyone spot anything wrong with this
theyre real
im trying to sign something and it wont work
legitimately not sure what im doing wrong
if i can't get anything to work ill try a oauth library after this
i dont think its gonna work at all
idk rust bro
but just so you know the url https://api.oauth.lib/core/authenticate does not work
likely obvious
Use modal inputs for args perhaps?
bruh
nah this should work across multiple sites
so you are doing signing via cryptography right
yes?
so what doesnt work
No
Imo they should just reform the UI for the Boolean option
Don't give the user an option to say yes/no if it's not required
You could possibly have a string option of args and have autocomplete options for args
Would be clunky but at least a little less clunky
But then you have to consider options that may invert an option enabled by default
Which sucks
doesnt modal only work in response to something? like responding to a button interaction?
i dont thing you can directly create a modal with a slash ommand
oh can you?
Or a checkbox might be an option which doesnāt exist and will probably be horrible on mobile
Yup
An entire modal so you can say yes sounds much more clunky
just an idea ĀÆ_(ć)_/ĀÆ
well but then you need to send an entire interaction lul
yeah you cant call up a modal directly, you can only open it as a response
lmao
I mean I have a command for editing a tag which you submit a name within the slash command and then a modal pops up for editing parts of that tag
I donāt know if that applies to your situation at all but maybe it helps
Modals need more features tho 
i have other uses for modals, ie clicking a button and using the modal to type a name to save
Creative
Or for example hammer a slash command with choices, then open a modal
can a modal be created with prefilled or readonly data?
As for setting the bot configuration
Afaik no
That would be cool though
it would be great for my use case if i could click a button and popup a read only modal explaining stuff
There you go
The question remains If that will be send with the interaction
If the user doesnāt type anything
Iām testing rn Iāll check
i have another dillema now
my old style command has 3 types of input, and an option to combine any of those 3 types with a second version of any of those types
Ah okay
i have no idea how to translate this to slash commands
it would be great of suboptions existed
I donāt get the last thing you wrote
i'll explain
old style:
now
date + time
date + time + location
name
anyoftheabove + anyoftheabove
example i could do date + time + date2 + time2
A like to pass multiple date-time-locations
Hmm I guess the will have to run the command each time
i guess i could do several subcommand types
As a dynamic amount of parameters or options doesnāt exist
something like /command from-date-plus-name or /command from-date-plus-date
and give the second one a date2 time2 location2 options
Or still set the options date, time and location as optional and pass multiple values split by comma
time: 1,3,3,4 date: 9,8,7;6 ā¦
that would be a good idea, but i dont think people will find it intuitive
Yeah users are dumb
no i cant make it two commands
the output needs both inputs
A good idea tbh
Wait for it
Enter a slash command, open a modal with your time, date, location fields, when sending the modal respond with a ephemeral message, with a component (button) - click here to enter one more, click opens next modal
Disable the button after some time
apparently you cant
Sending the modal -> message response with a button -> clicking the button for one more submit -> open modal
another clunky thing
FFS read what I wrote
open modal -> type name to save -> submit -> name already exists please type a different name -> user has to click the modal again instead of it opening automatically
Hmm can you use autocomplete in modals?
Can you validate the fields anyhow without hitting send modal?
idk tbh
I mean autocomplete would be the thing
Entering the username which already exists, the user canāt select anything in the field
Hello.
I would like to get help on how to make the following :
I am making a discord club, and I want to make a bot, and I want to people to say somethibg like x!login" and they will get a Discord Oauth2 link, after they accepted that, the bot will add them a speacial role and will let the user use more than 1 command an not just "x!login"
I would really appreciate your help, i already searched the web but nothing...
but its nicer if the user can save by clicking a button
does textinput component exists outside a modal?
I agree thatās why I said instead of entering your command multiple times to send the inputs (date, time, etc) you could send a message with a button the user can press, asking in the message if he wants to send another one
No how would that make sense
idk
Thereās nothing the user can interact with other than entering stuff in the this chat box
Are modals on mobile discord useable?
Man I have not time to test things ffs
i have time but have no patience
Iām close to register one test command via eval on mobile while driving
Thatās actually worse 
Seems usable to me
same as autocomplete but only 1 time
(iOS)
You if you canāt find anything to copy you have to write it yourself 
Isnāt that what autocomplete is for?
yes but autocomplete spams you with events for every single character the user types
a dynamic choice would do things like get the author in the db and give him a set of choices tailored for him, and would be fixed no matter what the user types
and wont spam you with events
not sure how dropdown menus work, but is that possible with dropdown menus?
yes
Dude set a simple timeout and cleartimeout as long as the user is typing, if the timeout doesnāt get cleared anymore, letās say after 1-2s you respond.m, search your database or whatever
but dropdowns need to be sent as a response first
yeah i just ignore the events, but they still send them
useless traffic
lmao
Who ducking cares about traffic my gosh
Thatās what I mean, a few seconds would be enough
i have an option with 40 choices
i think so?
If you donāt give the user an option to select he canāt end the input?
pretty sure the user does not need to select one of your autocomplete options
they can type whatever they want
same as everywhere else
like google search
they give you autocompletes, but eventually they have nothing else to give you
you can still submit your crazy ass query
Then an option would make sense to force the user to choose something you show
If you show nothing then ht canāt validate the field
Wtf
Iām Tim now
WTF
lmao
lmfao
Stop triggering me
#triggered
after knowing now you canāt enforce your autocomplete options the feature is fucking nonsense
well, autocomplete has always been just suggestions?
It does absolutely donāt make any sense if you canāt enforce an option
if you want to enfore an option you need to use choices
hence why dynamic choices would be a good thing
But itās the perfect option to validate an user input dynamically in your backend before sending the command
wanna make a post about it on the discord dev github?
Not even sure if my GitHub account still exists 
lmao
tim having a brainfart
multithreading was a bad idea
but 1.9 fucking BILLION iterations in under a minute is impressive
considering my code is probably extremely poorly optimized
They must be ram hungry
Huh on one system?
hello! Im getting data from an api and I want to send it into a channel, but when I send it to a channel, the \n doesnt really make a newline.

a lot of the ram usage is probably just windows bloat tbh
rn I have clion spotify and discord open
together those take around 2gb of ram being generous
\ is an escape char
Use \\n
discord api v10 is already a thing lul
str.replace('\', '\\')?
why / lmao
wait fuck i messed up
Yeah an escape char as I said
what are you iterating?
creating random strings of the same length of a string I input on multiple threads
You gotta be careful to not hit the max safe integer with your iteration or your app will explode
xD
you mean 9.2 googleion
googolplexianth
void MonkeyTypewriter::launch_threads(int count, const std::string &str, std::atomic<long long>& count_var) {
std::vector<std::thread> threads;
std::atomic<bool> found(false);
std::atomic<bool> ready(false);
for(int i = 0; i < count; ++i) {
std::cout << "Thread #" << i << " Spawning\n";
threads.emplace_back(std::thread([&str, &count_var, &found, &ready] {
while(!ready) { std::this_thread::yield(); }
std::string s;
MonkeyTypewriter mt(str);
do {
s = mt.generate();
// std::cout << "String generated from thread " << std::this_thread::get_id() << ": " << s << "\n";
++count_var;
} while(s != str && !found.load());
found.store(true);
})
);
}
ready = true;
for(auto& thread : threads) {
thread.join();
}
``` this is basically what I'm doing
thats an actual number
probably horrendous but still
std::string MonkeyTypewriter::generate() {
std::string s;
for(int i = 0; i < search_str.length(); ++i) {
unsigned char c = intRand(97, 122);
s += c;
}
return s;
}
``` that's how I generate
Also long doesnāt exist you devil, itās called bigint
tbh this could all be static and eliminate the need for objects
nope
Been iterating over trying to find who tf asked.
well over a googol with 0 results in the array
I'm sorry, that was mean. I didn't mean it
Depends how fast you want it to complete
no, I'm asking š
Can you show the associated code please?
19b threads with 12 iterations
text = `${text}\`\`\`\n${act.type}\n${act.title}\n${post}\nAnytime: ${act.anytime}\`\`\``;
easy enough
try preallocating the string length
it was nice knowing you cpu
bye bye now
it's so bad I can't search for anything
would not be surprised if my pc bluescreened
holy shit my keyboard colors just froze
LMFAO
lmfao
happens
they're going in 5 fps
5? too much
wait holy shit that was fast
gotta aim for 1 fpm
oh nvm
I got lucky
1.9b iterations to find a 7 letter word
thought it was 19b in 43 seconds
Hmm weird tho try concating the vars as string
wdym
uh ok
Horrible to type on mobile
As you have to escape each of these special chars changing they keyboard each time
nope
I kinda wanna do more stuff with multithreading on c++
Iām pretty sure it has to do with how you send it to the api
Canāt be anything else tho
how about you microoptimize your code first ? :^)
Just show how you send text to the api
actually true
it cant be it because the api response with \ns
make a template function and give it a char array with N+1 size
i might need to actually parse it but dont know how
and get rid of std:string
Which means it does escape your \n to \\n
actually no you cant use templates for this, but you can use a gradual fixed sized array for specific thresholds
Feb.10,2022\r\nMagandang this is what says when I log the text
I did double the backslashes but it doesnt seem to work
or maybe it is already doubled
Why \r\n
Are we speaking about discord or Windows line breaks in a file?
Do we actually speak about the discord api?


cuz its what the api sent me.
should it not be there?
ima try to remove it
still doesnt work
carriage return line break
100% a windows thing
keeping it will do nothing, just need to escape it
how about you show your code?
Already asked for it
Still donāt even know if heās speaking about the discord api 
its some random api, it somehow returns double backslashes then I logged it.
Feb.10,2022\\r\\nMagandang
Yeah what I assumed
how do I fix that
So that random API code does escape the escape character
replace doesnt seem to work
yes
ok but why triple
yeah its 4 backslashes
So you need to escape the escape that escapes the escape
i already excaped the escape that escapes the escape
wait
āŖļø
is there any way to log the raw raw text
Define raw
raw raw
What is raw
Tf that amount of headers
I need a bigger mobile screen
well i just copied it from chrome dev tools and if i modify it it might not work
Oh, well
Also that request being POST is weird since body is a querystring that doesn't have any sensitive data
But well, weird webdevs
const getActivities = async (session) => {
let r = await fetch("https://api.com/oa_school/dashboard/get_calendar", {
headers: {
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"x-requested-with": "XMLHttpRequest",
cookie: `ci_session=${session}`,
},
body: "f=get_merged",
method: "POST",
});
return r;
};
```well I managed to shorten it without breaking it
Been running my more optimized version for about 7 or 8 minutes now and it hasnāt finished 
This better be like 40b iterations
If this random API escapes the chars thereās nothing you can do about it
eh?
Saying it Trivial, if they replace any \ by \\ then you canāt get a different response
how do i replace \\ with \
You never said where this response is going to
a discord channel
Ok
So you actually get text with escaped line breaks from the API and send it to Discord
(I mean to the Discord API - t your channel)
well sending it to discord doesnt make linebreaks linebreaks
Do you do your own discord api call or do you use a lib, like djs?
djs
so at the end itās channel.send(text) ?
yeah
What does console log text shows here?
Feb.10,2022\r\nMagandang
Brb
heres a fragment
its inside a codeblock
but
I
should
be
able
to
do
it
just
fine```
Is that really what you see in the console?
Or did Discord already escape things here
Wrap special chars in code tags. Always
?
Thatās the console log of your text?
One second
If this helps, windows uses \r\n for linebreaks, and Linux only uses \n
No idea if thatās anything related to your issue but still
Unfortunately not I tested it a few seconds ago
The API accepts both as line breaks
@unkempt ocean
Thank
Damn
Ok pinged more than one mod
just added message intents and logged it....
Ban please for both
Is this just multiline content or a multiline embed?
content
In code tags?
code tags?
code tags
wdym
Wtf
wtf?
is your text in code tags
Or outside
inside
Yeah it is actually shown as code block or does discord also escape your `
it should be fine, I tested with actual \n and \r and works
its actually shown as Id like
You tested it in your discord client m, right ?
but the \n doesnt show up as a newline
text = "";
if (addedActivities.length != 0) {
text = `${text}**Added Activities:**\n`;
addedActivities.forEach((act) => {
text = `${text}\`\`\`\n${act.type}\n${act.title}\n${act.post.replace(/\\\\([nr])/g, "$1")}\nDeadline: ${act.is_anytime || act.end}\`\`\``;
});
}
if (removedActivities.length != 0) {
text = `${text}**Removed Activities:**\n`;
removedActivities.forEach((act) => {
text = `${text}\`\`\`\n${act.type}\n${act.title}\n${act.post.replace(/\\\\([nr])/g, "$1")}\nDeadline: ${act.is_anytime || act.end}\`\`\``;
});
}
if (activities.length != 0) {
text = `${text}**Ongoing Activities:**\n`;
activities.forEach((act) => {
text = `${text}\`\`\`\n${act.type}\n${act.title}\n${act.post.replace(/\\\\([nr])/g, "$1")}\nDeadline: ${act.is_anytime || act.end}\`\`\``;
});
}
console.log(activities);
console.log(text);
client.channels.cache.get(notificationChannel).send(text);
**`client.on('message', async (message) => {
if (message.author.bot) return;const messageArray = message.content.split(/ +/g);
const cmd = messageArray[0];
const args = messageArray.slice(2);const snekfetch = require("snekfetch");
const fs = require("fs");
module.exports = {
"snekfetch": snekfetch,
"fs": fs
};
const prefix = 'fox';const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); for (const file of commandFiles) { const command = require('./commands/${file}'); client.commands.set(command.name, command); } const commandfile = client.commands.get(cmd.slice(prefix.length).toString().toLowerCase()); if (!message.content.startsWith(prefix)) return; if (commandfile) { commandfile.run(client, message, args); }})`**
Hello guys! So i want to be able to put a space between prefix and the command is that possible in here?!
prefix = "fox "
That doesnt work
if (message.content.startsWith("fox "))
Is the same thing
nope
So act.post is your var which you have issues with
Remove the replace method completely and concat the var to your text var
(just for test reasons)
text = ⦠(without app.post)
text += app.post;
Wanna see something
Ignore the deadline line right now
do I make everyting +=?
or just the
No, just remove your app.post var of your text template string and add a line text += app.post after it
wdym
I need the code not the output
if (activities.length != 0) {
text = `${text}**Ongoing Activities:**\n`;
activities.forEach((act) => {
text += act.post;
});
}
it doesnt replace
Aha there we go
This one works?
yep
Ok now wrap it in your template string again with this replaceAll method for app.post
Does it still work?
Dangling backslashes
Shh it works
That all what matters
Also I hate the fucking discord client an itās stupid escape behavior
They never heard of encoding I guess
or escaping

\
\discord\nsucks\nhard
smh
Which one of you guys want to try solving this? https://rsk0315.github.io/playground/passwordle.html
woat
Is that a community bruteforce method?
Also where are the difficulty levels
Need to start at sha1
Iām already running a 800GB rainbow database with different hash values and their original unhashed string
Donāt wanna start another one
You will start another won't you?
Shut up! Donāt ! I canāt resist ⦠arg
I donāt wanna waste all my available space for databases my gosh
Generating the existing one took almost 13 days
is that even possible
i guess
Or a metric fuckton of luck
or a cheat somehow
I mean, that's a git page so there has to be a hardcoded string on the repo
It uses common rng
Can be found if u manage to extract the seed
Just need to both open the page and generate a random value at the same time
lol if you know the possible chars and length itās not hard
Also 7 letters and 7 numbers
That leaves us with 26^7 + 10^7 combinations
Plus you can ignore combos that don't match the correct hash characters
Know what, now I'm interested in making an algo for that
Jokes aside, it will
This screen
Less than a trillion? No prob
Oh wait, there's punctuation too
Still no prob
Also idk if I'm missing something, but I don't see him shuffling the pass
omg guys look
Maybe does in the arrow expression
I can't figure out how inspect element works
cheter lol
think smart not hard
im tryna figure out how to get the password
Nope, that just picks a random character from the pool
How can you have time to do shit like that?
He doest shuffle after tgat
im not very good at this so im not really making any progress
My day would actually need 72h
I'll defo make an algo to crack that
If you have the target hash it ain't hard at all
Guess why Iām running a rainbow table 
I also have the unhashed value
Which makes me cheat, ha
Cheetah
i dont understand what am i looking at
Tim youāre too old
victory
First encryption Tim knows was the one with replacing one char in any word be another char
Poor old ass
i think i figured it out
The target word is a 14-length word, with letters, numbers and punctuation
That's the hash
awe
im not very good at this
Tim
tim man
Hangman
Hangman with sha256
or hangman yeah
We got it, stop the hunt, witch or you will burn on the fire for your magical stuff
Nothing intricate
hits for what? trying to guess the password you wrote in?
basically, the site generates a random password
and it's your job to figure out what that password was
it'll give you hints in the form of a sha 256 hash of the generated password
oh there is already a password in there? besides the text input?
Yes
the text input is your guess
When you load the page it generates a new random string
ah lol
With length 14
that wasnt explained anywhere so i was completely lost
Give up Tim
Those young guys are weird
Having time to solve puzzles
Instead of working in mines
but can you even guess it with sha256 hints like that? is sha256 that predictable?
or are you just trying to guess the hash
When you have the source pool, generation method, the length and the final hash
and not the actual password
Yes, you can quite predict it
got it
sv_cheats 0
Totally the combination I would guessed the first time, too 
May I ask you about the next lottery combination?
no :)
hi i come from the future
now you come from the past
the next winning lottery number is 3746832
ok
Why are you not sleeping?
Go into your bed, now, old boy!
i am in bed
Or no internet time for you tomorrow
just not sleeping yet
Fuck let me google what to do next
lmao
lmao "5 steps to get unstuck"
"i dont know what to do with my life!"
stop trying to crawl into the washing machine
Get a job at discord
Does google intentionally show pills for you right of the search bar?

At least it looks like pills for me
Ah damn if that would be caused by your search string I would have laughed my ass off
yes
exdee
i feel like this channel has become quite off topic
Nope itās development and more
ok
ok
And stop talking to Tim
Heās not allowed to use the internet today as he doesnāt follow the rules
uvuvwevwevwe onyetenyevwe ugwemubwem ossas
Quiet!
you know what grinds my gears? people who dont know when to use quiet and quite
:^)
not you tho, you used it correctly
Can anyone tell me how can i approach hin to give intent
lmao, heās close to take his machete out and freak out
why do you need the intent?
For message command
what message command?
Like i want keep continue with message commands not slash also i have slash
you cant
Thatās no valid reason, lol
they already made it clear that they will not give people the intent only because they want to continue using normal commands
Then what can i do
you can give them an "acceptable" reason to give you the intent
if the bot is mentioned, you can still use normal commands without the intent
really?
yes
interesting
Yeah as well as dmās
No can you guys tell me some valid reason
my bot is >100 message commands and i really dont wanna switch ;-;
things that slash commands cannot do
automod
Okay and for music bot?
probably nothing
Setup channel?
shouldnt be hard to switch to slash cmds in a music bot
Itās not just enough to lie to discord about the reason, you will at the end getting banned for it
Any and I mean any commands can be executed as slash commands
Only if the bot has to watch all message for security reasons it needs the intent
There literally no other reason
do slash commands support inline text input
basically, your bot needs the message intent if you have a feature that absolutely needs to watch peoples' normal messages without having to be commands
wait discords removing the ability to have a prefixed command?
yes
dang
No
im not sure how to fix this
Yeah i need because we have music request channel
A mention is still a prefix
discord.py doesnt support slash commands and the repos dead
making it harder to have message command with custom prefix
yes
how
like
this
Try a fork like Pycord or Nextcord
you mean multiline?
Or just use mentions
Strings, numbers, booleans, time date picker (soon)
ye ig
yeah that's cool and all but give us variadic arguments already
for multiline you will probably need to use modal
i forgot you can use mentions
Erre no?
ill have to see how thats done
Or i want to know any support in djs to follow a announce channel by command
ill be back later
i use a string option and replace \n in it with a newline
The string option will also send multiline (if itās the last argument)
shift+enter doesnt work
One second
how
Yeah
Yeah
yes
Itās probably not being threated as line break
so is there a solution to the multiline other than what im currently doing ||\n||
CTRL + enter doesnāt work, too?
i tried ctrl, alt, and shift
alt sends the command
ctrl and shift do nothing
is it possibly because there is other arguments after it
It's not possible right now.
sad
You could use modals, but those are bulky.
dk what that is
Basically forms
ok
Aka as popup
im gonna stick to typing out \n then
I doubt it ever will
How should the UI look like for a multiline string argument in the middle of other arguments
That's my reason for thinking modals exist
you have subcommand groups
maybe something like this could work
show the multiline content when typing it out and if you arent editing the option it just shows ... at the end
The slash-commands UI will be getting a redesign, so that's what they'll do before implementing multi-line inputs and nested sub-command groups as collapsibles
epic
They didnāt even finish their todo list yet and did already plan a whole rework? lmao
I wonder when this will happen
Probably 2030
A redesign was planned a while ago, although they haven't started working on it, or probably haven't published previews of it
There are lots of features planned
would be great if date picker gets released before the deadline
Hmm well letās see if anything makes it way in before may
otherwise i'll needs a bunch of options combinatios with autocomplete to replace it
All of the features planned are listed here for those who haven't seen it
https://github.com/discord/discord-api-docs/discussions/3581
cool
variadics would also be awesome
age gated commands hm
i have a lot of autocomplete options that are basically comma separated arrays
Haa I will hack your system then by entering random shit which doesnāt fit your autocomplete options
As you canāt enforce your own options
Imagine you need 30s to enter your command, then it says sorry bad argument
Try again
pain
I would throw my phone away
cant really copy/paste it
Not on mobile at least
Hey have anyone implemented a reward system for people voting in python? I'm kind of lost
E N F O R C E at least one option ffs
To match one option
The UX for slash-commands in the Discord mobile client is a holy fuck moment
I'd like to use variadic arguments for variables in my tag command
autocomplete 40+ options or choices1 + choices2?
and me for my planets command
true emoji
I have to specify required or not in order for mobile clients to work properly
otherwise, the client thinks they are required
at least, iOS
when you register the command?
The slash-commands UI bugs out and barely even works in the Android clients 
like you have to specify required:false instead of omitting the field?
Im slowly getting aggressive
Letās pray for the UI rework Voltrex mentioned
Even as atheists, letās pray this happens āsoonā
And letās hope they donāt fuck the rework up, too
As we know itās still Discord whoās doing it
It'll probably be even worse than the current one because Discordā¢
Hmm I somehow except the same
Now everyone who has to live without the message intent needs to deal with the shitty possibilities you have right now just to edit anything again after this rework shit comes up
I like it
yeah
For modals?
That's just from testing on my own client a while back. I doubt things got fixed recently, but
Wut? Shouldnāt false be the default value anyways?
My setup is jank as fuck
it is, but the iOS client probably does stupid shit its not supposed to
Weird, indeed
Hmm didnāt register required: false for my command but Iām not forced to pass the argument on my iOS client
True peace will be achieved when Discord's clients become consistent with each other
yes
Although, I don't think that'll ever happen
I wanna say except a few things which are hidden on iOS it does actually look very similar to thr browser version
But you better donāt look under the hood
syntax highlighting on mobile when
I thought they had syntax highlighting on mobile
something something react native
Not on iOS
ha lozers
Also embed field titles arenāt bold
For some stupid reason
And thereās literally no padding between a value and the next field title
The list of client issues is close to be as long as the list of topggās site issues

nailed it
Well top.gg does have millions of bugs
never
making me cry
Loom?
you never heard of project loom?
Don't think so
true peace will be achieved when anything becomes consistent between android and ios
the balloon cell tower made by alphabet?
I have a question
ok
Is a bot able to track someone's IP or like when they get banned from a server and made another account, is a bot able to know its that exact person?
alright
If there was a bot that was able to like track down to see if that user that was banned was from the same device, how would it happen?
not possible
Discord hides your IP from anyone else connected to the service
how can I make a channel private? and accessible by only one member
dont give anyone permission :troll:
so how I do that with permissionOverwrites? what do I set there?
Assuming you are using djs and they still allow this you can just give permissionOverwrites id prop the guild's id (as that should make it so everyone in the guild has that permission aka the everyone role) and then give it the perm you don't want them to have e.g View Channel
ok I see
<Channel>.edit({
permissionOverwrites: [
{ID AND DENY perms}
]
})
permissionOverwrites takes an array of objects
that object you can define the id of the user/role you want to allow/deny perms of
Q1:how to fetch a message by it content in py?
Ans:?
can't find it
how do I fetch messages by channel id and message id?
what language
js
how do I know if message is deleted?
.deleted will get depre
cant a bot edit message older than its start time?
like the message sent is older than the bot's startup time so it cant edit the message
wait nvm im so dumb
forgot to put await
how do I ping using id?
<@id> okeh
<@!id> cooler
is it the same?
yes
why the !?
discord said that <@> will get deprecated
what? why?
why not update mobile instead of nuking hundreds of code?
not like message intent is already gonna nuke entire bots
is there a limit when a bot cant edit their message other than ratelimit, perms, and message deleted?
nope
do you know in operator in py?
do you know in operator is also in js?
do you know in operator is also in groovy?
do you know the in operator is also in your head?
do you know I am looking for a way to fetch old msg by content
Do you know Iām in your walls?
nvm you dont seem to understand what i am talking abt, suggest learn abt the basic of python first
I totally agree
Buying a product from Apple is like joining a cult
Pass me my iPhone 13 pro max running iOS 17 with 8k ultra hd video and 120hz display
and a compatible charger too pls
How so
There are cultists but that's not why people buy their products
They just like them (like me)
smh apple worshipper
I like my green apples
Hello I don't understand what to put here can someone help me it's to receive the person who voted
the address of your webhook server
Because they're selling overpriced products, and people are still buying them like crazy. It's also confirmed that Apple purposefully slows down old models. I also said that because personally I haven't seen a single person who has just one apple product. There's nothing wrong with liking apple ofc. but people who own Apple usually defend it waaaay too much, too. Just my observations.
you have exemple pls ?
when you run a webhook server, like using the top.gg sdk or using express, it will start the server in a given ip address and port
People are willing to pay the absurd extra because they like their products + it's part of their appeal for "premium"
where is your bot hosted?
i test in my pc now
Slowing down old models is true and they've been sued to death as a result
then it would be your pc's ip address, and the port your server is running
But it was because they didn't notify the user in a good manner
and you probably also need to port forward your router, because routers usually block unknown ports
oh shit is hard x)
Personally I wouldn't buy from a company which does that on purpose
I agree that people defend it too much but disagree where you say it's fine to like them as a company. I think this video does a good job explaining the problem + it's not limited to Apple. https://youtu.be/_hYHwkIuEMo
Let's get Right to Repair passed! https://gofund.me/1cba2545
We repair Macbook logic boards: https://rossmanngroup.com/macbook-logic-board-repair
š The horrible truth about Apple's repeated engineering failures: https://www.youtube.com/watch?v=AUaJ8pDlxi8
š Find tools used, recording gear, repair guides, chip sources, & cryptocurrency donation ...
Also them making you to buy charger when you buy a new phone (if u don't have one already). What a scam. I don't get how that would help the environment, lmao. Plastic straws issue all over again
^ that was immediately made illegal in brazil lmao
apple is not allowed to sell phones without chargers in brazil
brazil laws > us laws
lmao
yeah, so people still praising the company and buying all their shit is still crazy to me
I'd rather see governments mandate usb-c rather than force Apple to include the chargers
That would have a much bigger impact
a few days ago i had to replace the keyboard on an old macbook 2009
ever tried doing that?
shit is all glued together, you have to remove everything, including the motherboard, then you have to break open the glued plastic thing
Try replacing a MacBook today
It's much worse
Everything soldered to the board
Small $0.50 usd component damaged? $500 repair to replace motherboard
Also! I believe Apple denies further support and service if you've ever tampered with the device, like if you've done a repair yourself
I also think they started suing unauthorized repair shops for repairing apple products
They do deny them
They don't here
They've tried in the past
And a few times today
But for the most part they don't
Instead they'll just tell manufacturers to not sell the components to anyone except Apple
are you defending google because your username
Which sucks balls
ok that's enough internet for today
I think it's best to see Apple for what it is: a soulless company that makes great products to use for consumers
Yeah I gotta say the cameras on their phones are the best ever
I like my MacBook on macOS Monterey
but that's not enough to make me buy one
Yeah I won't
No way I could afford to shell out $2000 for their base laptop today
Yeah, their products are good, still overpriced though
I love how an actual camera costs less than an iphone and still has a better camera
Making apps is so hard too
Need a macbook + 99$ a year fee + high chance of having app removed from app store
It's hard to compare them because with a camera you can use different lenses, but for quality, an iphone camera is good as any professional one
It's rewarding though
Learning Swift + SwiftUI + all the frameworks and paradigms taught me a lot
But App Store does suck
Giant monopoly
samsung s22 ultra
2000: We put a camera in a phone!
2022: We put a phone in a camera!


