#discord-bots
1 messages · Page 879 of 1
Why are you using that much wait_for
This
i was making a help command but i need it to forever loop
Plus you can call back the function depending on the button you press
I'm asking if you want a paginator like this the help cmd of python
i just want a loop for my help command
This is actually a pretty dangerous SQL statement, or at least an entry point. I would do a case statement but that's just me
Thank you finally someone who understands
@bot.command(aliases=["HELP","Help"])
async def help(ctx):
while True:
await ctx.send("De Help Command.",embed = hembed, components=[Button(label="Page 2", custom_id="button1", style = ButtonStyle.blue)])
interaction = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button1")
await interaction.respond(type=7,content="De Help Command.",embed=hembed2, components=[Button(label="Page 3",
custom_id="button2", style = ButtonStyle.blue)])
interaction2 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button2")
await interaction2.respond(type=7,content="De Help Command.",embed=hembed3, components=[Button(label="Page 4",
custom_id="button3", style = ButtonStyle.blue)])
interaction3 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button3")
await interaction3.respond(type=7, content="De Help Command.", embed=hembed4, components=[])
Define your context of "loop"
I want to make a button that will loop to the first line of code
omg this is so annoying
yes it set the custom column but why when try to add item it set to "1" instead add item :V
can someone help
Fun fact: The command won't ever stop executing
And this makes no sense, this is not c#.
I mean he wanted it to loop
async def start(ctx):
embed=discord.Embed(title="Profile", description="", color=0x00ff00)
embed.add_field(name= f"User: {ctx.author.mention}", value="✅Verified 18+✅", inline=False)
embed.add_field(name='Name', value=str(ctx.author.name), inline=True)
embed.set_author(name=str(ctx.author.name), icon=embed.Empty, icon_url=ctx.author.avatar_url)
await ctx.send("What Is Your Name?")
msg = await client.wait_for('message')
await ctx.send("What Is Your Name?")
msg = await client.wait_for('message')
await ctx.send(embed=embed)
print(f"The embed has been send")
``` When a user runs this cmd and it sends the embed i want it to add his profile icon picture and the authors name
can you elaborate?
Do you know how to explain it in English?
meaning that when the button is pressed in the last page it should go back to the first page
Yeah so a paginator like the @unkempt canyon !help command.
so, when i try to add apple to my inventory, it set the amount to 1 instead of adding 1 apple, btw code:
def add_item(name, amount, item):
item = item.upper().replace(" ", "_") if " " in item else item.upper()
cur.execute(f"UPDATE item_list set {item} = ? + ? WHERE NAME = ?", (item, amount, name))
conn.commit()```
yeah but instead of reactions its a button
well yeah, because you are running an UPDATE query
Hello
Yeee this is what i was looking for.
b-but it's +?
do you want to update an existing row or add a whole new row?
update the existing row ofc
hmm
https://github.com/DisnakeDev/disnake/blob/master/examples/views/button/paginator.py here is an example.
Disclaimer, i never said it was easy to do.
??
these are reactions
what do you want to update the existing value to?
No?
old value + amount
reactions, buttons, aren't they all the same?
Those are buttons, not reactions
their code are different
it seems that you have never seen a button
what was the amount you passed in
1
That bit is true i do like my fancy disnake wrapper that does all the nasty button stuff for me.
lol
@cloud dawn @final iron this is a button
the old value was 0 and now it is updated to 1,
what did you expect to happen?
:O
When did those got added??
ages ago
no no, the old value is 10 and now it's updated to 1
I know, the example that was given was with buttons
XD
LOL
the link shows reaction tho
No it doesn't
yes
No
ah wait i just realized the query should be f"UPDATE item_list set {item} = {item} + ? WHERE NAME = ?"
I don't think you know what a button is
@cloud dawn was the link you sent about reactions?
No it wasn't
oof ok, btw this is the funny thing xD
How dare you use his own power against him.
lol
No, you asked for buttons why would i send you reactions instead.
hhmmm
Even thought I have intents enabled in my code(discord.Intents.all) and in the dev portal, this doesnt work for some wierd reason. There are two online ppl with this role
can i remove the last (item,...)?
no, is it the buttons i showed?
I mean idk why you don't have autocommit on.
Yeah.
You showed buttons and you were given buttons
wait, THATS EXIST?
i was given REACTION BUTTONS
Yeah no shit
Just change the name if you don't like it...?
what the....
anybody? ;-;
You still aren't using aiosqlite ;-;
What isn't working?
hkjqwdjknhwqemfdniwedmhiqwnbemkdnwej
sorry out of my expertise
btw ty @lament mesa , thats work
Yeah, you need to fix that
Help
@bot.command(aliases=["HELP","Help"])
async def help(ctx):
await ctx.send("De Help Command.",embed = hembed, components=[Button(label="Page 2", custom_id="button1", style = ButtonStyle.blue)])
interaction = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button1")
await interaction.respond(type=7,content="De Help Command.",embed=hembed2, components=[Button(label="Page 3",
custom_id="button2", style = ButtonStyle.blue)])
interaction2 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button2")
await interaction2.respond(type=7,content="De Help Command.",embed=hembed3, components=[Button(label="Page 4",
custom_id="button3", style = ButtonStyle.blue)])
interaction3 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button3")
await interaction3.respond(type=7, content="De Help Command.", embed=hembed4, components=[])```
I want to make a loop
like
```py
await ctx.send("De Help Command.",embed = hembed, components=[Button(label="Page 2", custom_id="button1", style = ButtonStyle.blue)])
interaction = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button1")```
this is the first line of code
```py
interaction3 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button3")
await interaction3.respond(type=7, content="De Help Command.", embed=hembed4, components=[])```
this is the last line of code
so I want to make a button that will loop back to the first line of code
but discord.ext.tasks.loop doesnt work
it shows everyone is offline even though there are online members
👍
You don't get to pull this card.
??
I sended purrfect example :3
^
??????????????
I easily made a paginator with the example
What module are you using?
button
!pypi button
uhm you got a more specific name?
its discord_buttons_plugin ig?
!pypi discord_buttons_plugin
A simple module to use for buttons in discord.py
its not XD
This is not the same module
???????????????????????????
embed.set_author(name="{member.mention}", icon_url= "ctx.author.avatar") Can someone tell me if this is right?
It is
I need the module of the name you are using the create the buttons.
how can we get a subcommand in disnake? for example, we can get a command by doing bot.get_command
this is the code my friend and i made
check it properly
or test it
you need an f before the quotes on name. And you need to either typecast ctx.author.avatar to a string or actually make an f-string
!d disnake.ext.commands.group they are called groups in disnake
@disnake.ext.commands.group(name=..., cls=..., **attrs)```
A decorator that transforms a function into a [`Group`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.Group "disnake.ext.commands.Group").
This is similar to the [`command()`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.command "disnake.ext.commands.command") decorator but the `cls` parameter is set to [`Group`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.Group "disnake.ext.commands.Group") by default.
Changed in version 1.1: The `cls` parameter can now be passed.
?????????????????????????????
we want the name of the lib
I still need the module name, otherwise i will be coding blind.
we dont want the snippet
ITSBUTTON XD
And you need to either typecast ctx.author.avatar to a string Wdym by that?
be more specific please.
yeah but how can i get a specified subcommand of a specified command?
I'm 80% certain it's discord.py but no way i'm risking this lol
Honestly just add .url at the end
@lament mesa can i do
def check_item(user, item):
user = str(user)
cur.execute(f"SELECT {item} from item_list where NAME = ?", (user,))``` instead of doing https://paste.pythondiscord.com/ihariluweq
it isnt
try capital B
ig
dpy 2.0 support button but not that way
!pypi Button
hmmm
Again, not the module
idk button
Change member to ctx.author
can you show us your import
@cloud dawn
version
Just see what you're importing
lemme try
!d disnake.ext.commands.Group.get_command
get_command(name)```
Get a [`Command`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.Command "disnake.ext.commands.Command") from the internal list of commands.
This could also be used as a way to get aliases.
The name could be fully qualified (e.g. `'foo bar'`) will get the subcommand `bar` of the group command `foo`. If a subcommand is not found then `None` is returned just as usual.
Show us your imports
its *
from what
🗿 ok
show the full import line pls???
yeah but make sure that item is not user input
ITS LITERALLY *
ok :))
from discord_buttons_plugin import *
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\nextcord\ext\commands\core.py", line 168, in wrapped
ret = await coro(*args, **kwargs)
File "d:\discord server bot\Bot2.py", line 303, in start
await ctx.send(embed=embed)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord_components\dpy_overrides.py", line 350, in send_override
return await send(channel, *args, **kwargs)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord_components\dpy_overrides.py", line 325, in send
data = await state.http.send_message(
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\nextcord\http.py", line 337, in request
raise HTTPException(response, data)
nextcord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embeds.0.author.icon_url: Scheme "ctx.author.avatar.url" is not supported. Scheme must be one of ('http', 'https').
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\nextcord\ext\commands\bot.py", line 1055, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\nextcord\ext\commands\core.py", line 933, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\nextcord\ext\commands\core.py", line 177, in wrapped
raise CommandInvokeError(exc) from exc
nextcord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embeds.0.author.icon_url: Scheme "ctx.author.avatar.url" is not supported. Scheme must be one of ('http', 'https').
.
@cosmic agate show the full import line pls??????
I have never seen this import in my entire life
by doing this we will get the command, not the subcommands of the command
it import everything in a file
from re import search
from discord_buttons_plugin import *
import discord
from discord.ext import commands
import os
from telegram import Bot, Voice, bot_api_version
import wavelink
import random
import asyncio
XD
!pypi discord_buttons_plugin
A simple module to use for buttons in discord.py
Read the description of the embed click on it if needed.
im not god to make a new command
XD
What's the point of using a 3rd party module to create button?
Dpy has support for them
Not the same module checked the source.
IDK BUT IT WORKS XD
Oh I see
sed
@jade tartan remove the quotes
icon_url=ctx.author.avatar.url
- means all methods, vars, classes etc.
cuz you dont even know what is from x import * do
I Only helped making the comand
all import my friend
tbf i would have a hard time explaining this as well
XDDD
so what does from x import * do?
Why is it always when i nextcord uninstalled it shows this File "d:\discord server bot\Bot2.py", line 6, in <module> from discord.ext import commands ImportError: cannot import name 'commands' from 'discord.ext' (unknown location)
first of all whats x??????????
an example module
It’s a wild card import. It imports everything from whatever x is
okok
Are you using discord components?
Including variables, classes, functions, and other datatypes etc
discord_components got discontinued ig
u are using dislash.py?
y would be surprised
if it isnt have an __all__ var i suppose
else it will import everything in the __all__ var
no discord.py, its out of support but im having a hard time changing softwares
Yeah __all__ specifies what will be imported when you wildcard import the file
That said * is to be avoided as much as possible, only place were i want to see a * for import is inside an __init__ file
^
^
Ignore that, you figured out what module you use?
POV he is prob dutch.
idk , *?
awww, so cutee
check my about me
How do i work discord.py without nextcord module installed? cuz its showing this Traceback (most recent call last): File "d:\discord server bot\Bot2.py", line 6, in <module> from discord.ext import commands ImportError: cannot import name 'commands' from 'discord.ext' (unknown location)
force reinstall dpy
sus
Help
@bot.command(aliases=["HELP","Help"])
async def help(ctx):
await ctx.send("De Help Command.",embed = hembed, components=[Button(label="Page 2", custom_id="button1", style = ButtonStyle.blue)])
interaction = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button1")
await interaction.respond(type=7,content="De Help Command.",embed=hembed2, components=[Button(label="Page 3",
custom_id="button2", style = ButtonStyle.blue)])
interaction2 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button2")
await interaction2.respond(type=7,content="De Help Command.",embed=hembed3, components=[Button(label="Page 4",
custom_id="button3", style = ButtonStyle.blue)])
interaction3 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button3")
await interaction3.respond(type=7, content="De Help Command.", embed=hembed4, components=[])```
I want to make a loop
like
```py
await ctx.send("De Help Command.",embed = hembed, components=[Button(label="Page 2", custom_id="button1", style = ButtonStyle.blue)])
interaction = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button1")```
this is the first line of code
```py
interaction3 = await bot.wait_for("button_click", check=lambda inter: inter.custom_id == "button3")
await interaction3.respond(type=7, content="De Help Command.", embed=hembed4, components=[])```
this is the last line of code
so I want to make a button that will loop back to the first line of code
but discord.ext.tasks.loop doesnt work
pip install --force-reinstall discord
h
i just want a button that loops back to the first line of code
Could you please stop spamming this? If you don't want to provide additional info we can't help you.
also this is a really dumb and bad way to make help command
^

umm spam?, some people didnt see ig
bruv, me, he, he#2 see
pls check my about me before dealing with me
ik
and that still count as spam
--force reinstall discord.py?
ok ok i accept, happy?
🗿 ?? that just says that u r a dumbaidiot
@jade tartan
regarding
but ples dont spam anymore E
I understand, but before re-pasting your question again, provide info on what module you are using you can't just "hop to that part" because you want it to go there.
IDK
thank you that worked
h
np ❤️
Show your imports, that has been suggested numerous times.
:3
I SHOWED
No you haven't, you only said one module and *
from re import search
from discord_buttons_plugin import *
import discord
from discord.ext import commands
import os
from telegram import Bot, Voice, bot_api_version
import wavelink
import random
import asyncio
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "d:\discord server bot\cogs\levels.py", line 33, in on_message
with open("levels.json", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'levels.json'
Ignoring exception in command start:
Traceback (most recent call last):
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "d:\discord server bot\Bot2.py", line 298, in start
embed.set_author(name=f"{ctx.author.mention}", icon_url=ctx.author.avatar.url)
AttributeError: 'str' object has no attribute 'url'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\thoma\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'str' object has no attribute 'url'```
And it's a music bot as well? ||kill me||
dpy 2.0 or what
lmao telegram
?
ikr XD
what
can you print discord.__version__?
When he reinstalled he probably got the latest version that was on pypi
import discord
import os
from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Bot, guild_only
import random
import giphy_client
from giphy_client.rest import ApiException
import asyncio
import discord_slash
from discord_slash import SlashCommand, SlashContext
from discord_buttons_plugin import *
from discord_components import *
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
from io import BytesIO
import datetime
import praw
import reddit
import pandas
from discord.utils import find
``` my friend's imports
yes when i forced reinstalled dpy
dpy 2.0 doesnt on pypi
because it was bugging with nextcord
The pypi gave the right button module you just got an old version or smth..??
That’s what I was hinting at 
def check_item(user, item):
user = str(user)
if item != "brewing stand" or item != "sword" or item != "armor":
item = item.upper().replace(" ", "_") if " " in item else item.upper()
cur.execute(f"SELECT {item} from item_list where NAME = ?", (user,))
it = cur.fetchone()
item = it[0]
elif item == "brewing stand":
cur.execute("SELECT * from users_data where NAME = ?", (user,))
conn.commit()
it = cur.fetchone()
item = it[10]
elif item == "sword":
cur.execute("SELECT * from users_data where NAME = ?", (user,))
conn.commit()
it = cur.fetchone()
item = it[11]
elif item == "armor":
cur.execute("SELECT * from users_data where NAME = ?", (user,))
conn.commit()
it = cur.fetchone()
item = it[12]
return item```
So?
You guys have 3, 3th party libs for buttons and slash commands? I would get confused as well.
@jade tartan however please print discord.__version__
yeah
and afaik discord_slash is also an outdated repo as well
Soo... which one are you using in that command?
they switched to a new name, a standalone lib
wdym
At this point it’s really not a discord-bots problem the error is more inclusive to #databases
print(discord.__version__)
Well some module made that button
ik, but why are you asking me
oh..
XD
no on a standalone file
and run that file, i am wanting to know the version @jade tartan
ohh ok
from discord.ext.commands import Bot
from discord.ext.commands import Bot
```I hate this
umm no dyno 🤦🏼
Anyways.. i was right at the start it's from discord_components import *
ok...
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
```I don't like this either
they used a lot of mixed things and it make their code a really buggy code
from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Bot
from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Bot, guild_only # why importing again Bot?
yeah dunno why the first part is so bad
hmm
@fading harness
right
if you are in 1.7.3 then you must do avatar_url
import discord
import os
from discord.ext import commands
from discord.ext.commands import Bot
from discord.ext.commands import Bot, guild_only
import random
import giphy_client
from giphy_client.rest import ApiException
import asyncio
import discord_slash
from discord_slash import SlashCommand, SlashContext
from discord_buttons_plugin import *
from discord_components import *
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
from io import BytesIO
import datetime
import praw
import reddit
import pandas
from discord.utils import find
``` is the same as ```py
import os
import asyncio
import pandas
import datetime
import random
import discord
import discord_slash
import praw
import reddit
import giphy_client
from io import BytesIO
from discord.ext import commands
from discord.ext.commands import Bot, guild_only
from discord.utils import find
from discord_slash import SlashCommand, SlashContext
from discord_buttons_plugin import *
from discord_components import *
from giphy_client.rest import ApiException
from PIL import Image, ImageFont, ImageDraw
you just pasted it in vsc and clicked sort imports?
these code is actually better
Prob not
I did that manually ;-;
nice
Cause io is an inbuilt library?
Ye.
and why not just import disnake?
You need to update again

why not just pip install hikari-lightbulb and use it
Uninstall the version you have now and reinstall via using the repository link to get 2.0
Because Sarthak everyone has their preferred library
python3 -m pip install -U discord.py
reasons
@jade tartan
choose one of two.
- install dpy 2.0. see #guild-news of discord.gg/dpy to know how.
- change
ctx.author.avatar.urltoctx.author.avatar_url.
I mean why Disnake only 😔
Nop
I don’t shill disnake
I have my own stuff that I use that I don’t constantly shill in this chat
i am nextcord trash contributor where all my merged prs always got reverted 💀
plot twist: he uses pycord
what's the diffence you made in the 2nd point?
pip uninstall discord.py
pip install git+https://github.com/Rapptz/discord.py
Two seperate commands
@jade tartan see the edited msg, mb
You’d be wrong 
can just pip install -U git+ ...
pip install -U git+https://github.com/Rapptz/discord.py
yeah
no
Oh yeah
i think id go reviewing issues in sir lancebot bye
Cause they probably break stuff?🥴
Cloning https://github.com/Rapptz/discord.py to c:\users\thoma\appdata\local\temp\pip-req-build-35p8w0ip
Running command git clone -q https://github.com/Rapptz/discord.py 'C:\Users\thoma\AppData\Local\Temp\pip-req-build-35p8w0ip'
ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/Rapptz/discord.py 'C:\Users\thoma\AppData\Local\Temp\pip-req-build-35p8w0ip'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\thoma\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command. ```
merging is faster than debugging let's be real here
pycord moment
How do you not have git. Didn’t you have dpy 2.0 before
i dont have any modules or anything that would have to do with git
and no i have 1.7
So you’ve been using 1.7 then
.3 i think
In that case just swap avatar_url
yes thats the latest version on the python.com website
And upgrade when you feel comfortable
He means pypi
omg am lost what
.
the bot will run but the commands/methods using that attribute will break
So your code and discord version both is based on 1.7.3
Python.org is where base website for all python related things such as downloads, peps, etc. PyPi is a different website(still connected) python libraries and modules etc
ok
You can’t format mentions into names, and titles btw
nah, I'm back to using mongoDB, i'm not able to verify my acc 
still wanna use detabase
Lmaoo
its annoying alright
As I said, I made that account like 1.5 years ago, I don't remember the procedure. My account was made in like 5 min
What's up, what u need help with?
or I'm just too dumb 
Hi i have a question for a profiling system embed. if the user is verified. How do you make the bot know that that user is verified? if that make sense. for example store info like this one
still need help
i bet database
U still working on the bot for the dating server?
@jade tartan
Yes you wanna join?
No thanks
ok
meh
discord does not give us further age verified person information
well ppl get disgusted of my physical appearence
!ot
Off-topic channel: #ot2-never-nester’s-nightmare
Please read our off-topic etiquette before participating in conversations.
he asked
hmmmmmmmm
WeLl U sTiLl hAvE iNnEr BeAuTy
help
Off-topic channel: #ot2-never-nester’s-nightmare
Please read our off-topic etiquette before participating in conversations.
:v k
haha
The question would be well suited in #databases tbh
So that means i wont be able to store the user's age?
no one answer 
Thats mean
if you are verifying people by yourself then its a different case, discord's age verification process is private
Am talking about discord's age verification to be stored on to the profiling system.
and it would say the users age on the embed
but i mean it says the users age in a different server on their profiling system
idk what are you saying about that different age, discord's age verification is only about conforming whether the person is above 18 and that data is private
That data is private
The API does not disclose peoples age
#databases no one answer
k
wdym?
That this is the same
so did it solve my original problem?
from discord_slash import SlashCommand, SlashContext
from discord_buttons_plugin import *
from discord_components import *```
so you basically use 2 libraries for buttons only?
that would mess it up because they might have same classes, like Button etc and you import all of them thru the * import
Well you don't have a problem you want an entire class. And code a custom paginator.
sed
discord_components 
how can i run a command in on_ready event? like:
@client.event
async def on_ready():
await command_to_run(ctx)
😶🌫️ idky people still use that
you cant invoke a command in an on ready event, its possible only with on_message events / if you have a Message object
you shouldn't
what, you shouldn't call functions from on_ready?
^
ofc you won't make a dict for a non-existing command
works fine for me
that sounds awful
someone pls define command for me
how do you not get disconnected
!d discord.ext.commands.command
@discord.ext.commands.command(name=..., cls=..., **attrs)```
A decorator that transforms a function into a [`Command`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.Command "discord.ext.commands.Command") or if called with [`group()`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.group "discord.ext.commands.group"), [`Group`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.Group "discord.ext.commands.Group").
By default the `help` attribute is received automatically from the docstring of the function and is cleaned up with the use of `inspect.cleandoc`. If the docstring is `bytes`, then it is decoded into [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.9)") using utf-8 encoding.
All checks added using the [`check()`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.check "discord.ext.commands.check") & co. decorators are added into the function. There is no way to supply your own checks through this decorator.
im self taught and honestly half of the language people use goes above my head
thats why i said one should not do that
we're self taught too 
oh okay
@bot.command()
async def test(ctx): #test command
await ctx.send("testing") #what happens in the command
in my first bot i just had on_message and then a bunch of if else statements on message content lol
in my first bot, I didn't have an on_message and it worked perfectly
in my second bot, I made an on_message, then my commands stopped working so I did the exact same thing that u did
what the hek
which part of my code is making your brain boom
the 3rd line mostly
- use of globals
- api calls in an
on_readyevent - 3rd party library tho it doesnt really matter
Don't change_presence (or make API calls) in on_ready within your Bot or Client.
Discord has a high chance to completely disconnect you during the READY or GUILD_CREATE events (1006 close code) and there is nothing you can do to prevent it.
Instead set the activity and status kwargs in the constructor of these Classes.
bot = commands.Bot(command_prefix="!", activity=..., status=...)
As noted in the docs, on_ready is also triggered multiple times, not just once.
Basically: don't 👏 do 👏 shit 👏 in 👏 on_ready.
because @client.event decorator triggers even when the user send a comand. to fix this you have to use @client.listen decorator
oh, time/date is used all the time in the code. If i wanted i could get a new datetime object every time someone called it, but the datettime only needs to be up to minutes in resolution
*client.listen()
@bot.listen() 
so i just have a loop that updates it once a minute
can y'all stop using client for a commands.Bot
hikari's main class in a nutshell
and items[cat]["emo'][ind]. what kind of list do you have
🏃♂️ i call it MyBot
lol i wrote client because everyone uses it D_D
list of emojis
ppl name it how they want as long as they dont mess things up
i din't call my bot, i subclassed it xD
for various items in a game
wdym lol
imma go back to typescript 🏃♂️
the one time I pep8 someone
satisfying till the first 3 nums
4th one fucked
Ikrrrrr, 4th one messed the 4th ID
shows which ones i uploaded right next to each other
i must have had to go back and change that one
Lol
hmm does that mean the first eight digits represent time
Hello, I've written guild-exclusive prefix system, now how can I make bot respond to mentions? Because
bot = commands.Bot(
command_prefix=(lambda client, message:
commands.when_mentioned_or((QGuilds
.select()
.where(QGuilds.id == message.guild.id)[0]).prefix)
),
...
)
gives me a
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/nextcord/client.py", line 415, in _run_event
await coro(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1095, in on_message
await self.process_commands(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1091, in process_commands
ctx = await self.get_context(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1001, in get_context
prefix = await self.get_prefix(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 957, in get_prefix
raise TypeError("command_prefix must be plain string, iterable of strings, or callable "
TypeError: command_prefix must be plain string, iterable of strings, or callable returning either of these, not function
Ignoring exception in on_message
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 950, in get_prefix
ret = list(ret)
TypeError: 'function' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/nextcord/client.py", line 415, in _run_event
await coro(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1095, in on_message
await self.process_commands(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1091, in process_commands
ctx = await self.get_context(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 1001, in get_context
prefix = await self.get_prefix(message)
File "/usr/lib/python3.10/site-packages/nextcord/ext/commands/bot.py", line 957, in get_prefix
raise TypeError("command_prefix must be plain string, iterable of strings, or callable "
TypeError: command_prefix must be plain string, iterable of strings, or callable returning either of these, not function```
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
lambda with db call without commands.when_mentioned_or works normally
anyone knows where i can host a large bot?
somewhere cheap (at best)
that bot is on servers with 5k+ members
How to reset channel pernissions to []
anyone here use atom?
pass None
i'm trying to uninstall a package and it keeps reinstalling itself whenever i restart, pissing me off
Hi
I'm currently making a discord bot to give me embedds about git repo changes. Now I want the bot to be able to send message but I stuck at it. currently I'm trying with this piece of code:
async def send_embedd(msg):
channel = client.get_channel(941712195102851105)
await channel.send("anyádseszeret! @OrlaaniHUN#1715")
anyone could help me figure out why nothing happens?
you can make a discord bot in one line
[os:=__import__('os'), discord:=__import__('discord'), asy:=__import__('asyncio', globals(), locals(), ['coroutine']).coroutine, cmd:=__import__('discord.ext', globals(), locals(), ['commands']).commands, bot:=cmd.Bot(command_prefix = ';'), bot.__setattr__('on_ready', asy((lambda: print("Ready!")))), bot.command(name="ping")(asy(lambda ctx: ctx.send("pong!"))), bot.run(os.environ['Token'])]
your welcome one liner people
It reminds me of the js codes which you can find in google console
accurate
that hurts my eyes
it works though
I recommend to make embeds like this:
async def embed(ctx):
embed = discord.Embed(title="embed")
return await ctx.send(embed=embed)```
@slate swan we got you something
this might be overkill
not might, it already is
the ; should be :
loooong time ago it was
!d discord.Embed.DiscordEmbed nice function
No documentation found for the requested symbol.
some people name the var client still (like me)
indent + ur embed should be embed = discord.Embed(title="embed")
wrong naming, bad practice
Yea mb
its actually embed = discord.Embed(title="embed")
already said that above kek
i mean its the same exact thing as the client module, and it can do everything that the client module can
indenttttt
y tho
i dunno, i used to use client, it does nothing except change the decorator
I'ma start naming it BotClient
its not going to affect your code, i could name it pampers_wipes and the code would still work
ive had it as "bad" so when i make a new command its gonna be @bad.command()
@bad.event
fr
cuz it's not a client
sometimes making new variables names is hard
you're not a client

don't name something something that is not it
Isn't this solution sends the embed when a command got sent?
my main problem is that I want to send the message whenever I get the POST request, so I might need to call it as a function but I don't know if that's possible
try ```py
bot = commands.Bot(
command_prefix=(lambda client, message:
commands.when_mentioned_or((QGuilds
.select()
.where(QGuilds.id == message.guild.id)[0]).prefix)(client, message)
),
...
)
already tried, gives the same error
.
async def get_prefix(bot, message):
extras = await prefixes_for(message.guild) # returns a list
return commands.when_mentioned_or(*extras)(bot, message)
Use this as an reference.
how is this even supposed to work?
bot = commands.Bot(
command_prefix=(lambda client, message:
commands.when_mentioned_or((QGuilds
.select()
.where(QGuilds.id == message.guild.id)[0]).prefix)
),
...
)
``` i mean where is message.guild.id even from in a construction of bot
its a lambda func
well the error also sais it cant be a function...
TypeError: command_prefix must be plain string, iterable of strings, or callable returning either of these, not function
He probably made it more complicated than it has to be
making a normal function wouldn't hurt
^^
commands.when_mentioned_or(…) returns a function
which returns a list/str
Yep
it works with just lambda
Take a look at the last line
oh ok i still think its looks ugly af 😄
still better than custom on_message, and afaik this is the only method to create guild-exclusive prefix system
no
def get_prefix(client, message):
return commands.when_mentioned_or("prefix")(client, message)
bot = commands.Bot(command_prefix=get_prefix)
this works
tested it again and it works for now
you needed the (client, message) to be present there ( in the return)
i mean getting needed prefix in command_prefix keyword arg
no it still isn't
what else does this function seems to be doing

samsung
Why not do command_prefix = commands.when_mentioned_or... directly?
i just used the "prefix" string as an example , they have different implementation
(QGuilds .select() .where(QGuilds.id == message.guild.id)[0]).prefix
Ah okay
how can i make my commands not case sensitive?
case_insensitive=True in the bot constructor
ok
insensitive*
Mb mb
async def commandname.lower()(self, ctx):
:trollolol:
Not gonna work
Yea
custom decoration?
ah
@client.event
async def on_message(msg):
# construct a message instance with the content being msg.content.lower()
new_instance = Message(...)
await bot.process_commands(new_instance)
Only works if all yr command names have lower case chars
can you write messages that only one person can see? @slate swan
He means ephemeral messages
it would be to use slashcommands and have that i always forgot name xD it makes it only viewable for the one used command
yeah ephemeral
yes i would like to know how
Wierd name, took me a month to remember it properly
i agree dosnt make it easier with dyslexia
no, you can't either
the bot is only a user account too
maybe with slash commands
For designing bots, which is a better pattern, multiple bots each with dedicated designs, music bots plays music. Chat bots chats, or a pattern for a single bots to handle multiple jobs?
prob diffrent ones
Every interaction can make those
Buttons, select menus and stuff
how can i wait for a ping?
wait_for() ?
like this @cold sonnet
return member != ctx.author```can i do this?
!d discord.Client.wait_for
wait_for(event, *, check=None, timeout=None)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Waits for a WebSocket event to be dispatched.
This could be used to wait for a user to reply to a message, or to react to a message, or to edit a message in a self-contained way.
The `timeout` parameter is passed onto [`asyncio.wait_for()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.wait_for "(in Python v3.9)"). By default, it does not timeout. Note that this does propagate the [`asyncio.TimeoutError`](https://docs.python.org/3/library/asyncio-exceptions.html#asyncio.TimeoutError "(in Python v3.9)") for you in case of timeout and is provided for ease of use.
In case the event returns multiple arguments, a [`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple "(in Python v3.9)") containing those arguments is returned instead. Please check the [documentation](https://discordpy.readthedocs.io/en/master/api.html#discord-api-events) for a list of events and their parameters.
This function returns the **first event that meets the requirements**...
!d discord.InteractionResponse.send_message
await send_message(content=None, *, embed=..., embeds=..., view=..., tts=False, ephemeral=False)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Responds to this interaction by sending a message.
It has an ephemeral kwarg
does send/reply too?
i dont think so meh
wouldn't make sense for send, cuz you have to specify a member
!d discord.ext.commands.Context.reply
await reply(content=None, **kwargs)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
A shortcut method to [`abc.Messageable.send()`](https://discordpy.readthedocs.io/en/master/api.html#discord.abc.Messageable.send "discord.abc.Messageable.send") to reply to the [`Message`](https://discordpy.readthedocs.io/en/master/api.html#discord.Message "discord.Message").
New in version 1.6.
i would like that tho then it would be nice make games n stuff
like sink ships etc or something
how can i create this :]
pleas help
The error says it all for you
you can't await outside of an asynchronous function
@slate swan
Pass in True to the ephemeral= kwarg when responding to an interaction
ty
Do I see Robin here 👀
what can i do about it?
Move it inside an asynchronous function
fix
hi guys
im trying to make a bot that when u verify in my discord you give it permissions to make you join discords
does anyone have the code to upload nfts on opensea
so if i get raided. or the server gets deleted i can make everyone join back
bots have functions in applications called "join server for you"
0auth2
some whack website shit
ye
Not all that whacky, i've implemented it into our website
Yeah, except you would need to log in as the user
yep
Then you need to follow the oauth2 flow to gain access to a user's access token
Which require setting up a web server of sorts
like this
i want my bot to send a message everytime a price change, how can i make this possible?
you asked for 5min ago and got answered
Exactly, but it has to redirect you to your own website
simple i can create my own site.
You can spin up an express.js or flask server pretty fast
🙂
or just nginx.
use tasks
to loop n check price if changed alert to a channel
🤔 perhaps but you need to be able to exchange that code for an access token
i just got this for a captcha 💀
cz u r Robin, no one can have as high IQ as u have
kek but it sais left - now ur left or their left? 😄
But yeah @slate swan once you have the access token, you should be able to send an API request with the user's access token in the auth header and join servers for them
yep, but i dont know how to quite do that
Which part?
the whole api part + getting the users 0auth
I once helped a person add user authentication to his app 😔
I came to know that Discord API is not beginner friendly
Getting access token isn't all that hard, you do need a flask or express server
ah
^^^
bottoken*
Uhhh it isn't as easy as it seems lol
could u help if you have done it before?
never did with bot, only done user authentication, sorry
Any easy way to disable all button and dropdown after a certain task is complete? Other than creating two ui class and switching
self.disabled = True or smth and editing the view
https://dev.to/dandev95/add-a-user-to-a-guild-with-discord-oauth2-in-python-using-requests-595f this?
This is easy
If it's with express I could
Flask not so much I can still try though
Just add the guilds.join scope ot yr OAuth2 url
Indeed
all i would need is to log the user id incase the server gets banned or deleted so i can remake a server and mass add everyone that has verified
You cannot mass add everyone... You need to make everyone click the OAuth2 url
You need to store all of their access tokens then
Which is questionable practices
i understand that part, i would need to store the access tokens as robin said.
could store it into a .json file
Idk much about it, never played around much with it
no, that's the worst way to do it
You're handling sensitive information, it should be treated with the utmost security
maybe a mysql db
not some shoddy .json file
Encrypt it if you have to but make sure only you have the decryption key
ye
Just use the public, private key method but keep the private key safe and the same
This is all backend stuff so you can do it pretty easily with express.js and TypeORM or prisma orm to make it easier to store the data
async with aiohttp.request("GET", url=url) as response:
data = BytesIO(await response.read())
processing = await download.edit(content = "Processing your song! Converting into mp3 from bytes......")
with open(f"./audio/LOL.mp3", "wb") as f:
f.write(data.getbuffer())
await ctx.reply("Here is your favorite song!",file=disnake.File(f'./audio/LOL.mp3'))```
Whyyyyyyyyyyyyy
Lol lemme see
yep, but idk how to do that part xD
Do you want to open up a help channel? I can help you there
uh?
what is download
sure, how would i make one of these
#❓|how-to-get-help once you claim one, ping me
download = await found.edit(content = "Downloading your favorite song!")```
Nothing cool enough
now what is found? (I am guessing its a message)
Yes.......
found = await ctx.reply("Found the query! Searching for it........")```
what command is it to allow the bot to send a message instead of listening for a command, sorry i'm new to this lol
await ctx.send(...) to send a message
file=disnake.File(f'./audio/LOL.mp3')
yes.........?
@tiny ibex tell me smth
no f-string
When u save the file, is the file correct? Like the contents and does it play properly
huh?
No.........
0 bytes
then there is ur issue
I have always hated BytesIO istg😔
But the API gives proper response
try download file first and get it to work locally
I mean how..........?
check filesize it prob is 0 bytes
it is....
The API gives proper response BTW....
huh?
fp should be equal to buffer lol
And........ I don't do drugs
Bruh it is just an example
fp?
file path
I was jk lol

its an arg, not a kwarg anyways
also, with open(f"./audio/LOL.mp3", "wb") as f:
f.write(data.getbuffer())
await ctx.reply("Here is your favorite song!",file=disnake.File(f'./audio/LOL.mp3'))
isnt await ctx.replay inwith open space
wym
replay?
WDYM?
open space?
with open()
Yea
They are messed due to discord
with open(f"./audio/LOL.mp3", "wb") as f:
f.write(data.getbuffer())
await ctx.reply("Here is your favorite song!",file=disnake.File(f'./audio/LOL.mp3'))
``` like this better?
It's that way only
Discord messed up with indents
?
IG it was API side issue
Fixed?
I used mp4 instead of mp3
Bruh
😛
jesus
me dumb
Lmao bruh
BTW......... downloading NCS music ain't against ToS right?
No iirc
no
I need help with this guys
simple error
but show ur code
ok
u can have try:
except IndexError if u want
Oh cool then-
So........... this is all cool right.......?
@bot.command()
async def count(ctx, number:int):
try:
numberint = int(number)
if numberint < 0:
await ctx.reply(embed=discord.Embed(title="Timer", description="number can't be a negative",colour=discord.Colour.random()))
return
if numberint > 300:
await ctx.reply(embed=discord.Embed(title="Timer", description="number must be under 300", colour=discord.Colour.random()))
else:
embed=discord.Embed(
title="Timer 2.0",
description=f"{numberint}",
colour=discord.Colour.random())
embed.set_footer(text=":good stuff smh", icon_url="https://cdn.discordapp.com/avatars/839171088079519776/12cdb639fe5c26dccf39bf2e5678b8fc.webp?size=1024")
new_susi = message = await ctx.reply(embed=embed)
await message.add_reaction("⏰")
users = await new_susi.reactions[0].users().flatten()
hmmm = (users)
while number != 0:
number -= 1
embed=discord.Embed(
title="Timer 2.0",
description=f"{number}",
colour=discord.Colour.random())
embed.set_footer(text=":good stuff smh", icon_url="https://cdn.discordapp.com/avatars/839171088079519776/12cdb639fe5c26dccf39bf2e5678b8fc.webp?size=1024")
await message.edit(embed=embed)
await asyncio.sleep(1)
await message.edit(content='Ended!')
await ctx.send(f"{ctx.author.mention}and {ctx.hmmm.mention}! The Timer has ended!")
except ValueError:
await ctx.send('time was not a number')
pretty big ik
should of used !paste
YouTube doesn't allow downloading
Who cares..........
XD
ToS
And it's NCS
Still... they have a website iirc
NCS allows copyrights xd
No Copyright Sounds
yessssssssss ^
i think i made a typo there
@tiny ibex
I can't download from their website........
Use this, don't use YouTube
I aalready know lol
i wanted to say its possible to copy it
help pls
How to use python to download music from that site........?
use wavelink
For youtube?
!ytdl
Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.
For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:
The following restrictions apply to your use of the Service. You are not allowed to:
1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service; (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;
3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;
9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
It uses soundcloud and youtube
best of both worlds
Downloading music from youtube is against their terms of service, and in accordance with rule 5 we can't assist you with that
I am asking of how to download from NCS tho-
Oh okay, sounded like you were asking to download from youtube
NCS is fine, not sure if they have an API though you might want to check
They don't have one-
my code
That's unfortunate
new_susi = message = await ctx.reply(embed=embed)
??
can't I actually web scrape?
Web scrape for music?
i was just playing around
IG
Don't know about that, though I think ncs does let you download their music w/o an API, through their website
how can i detect mentions in a message?
You might be able to leverage that to get music
Time to datamine........
the error is here:
users = await new_susi.reactions[0].users().flatten() right? @cosmic agate
message.mentions -> List[discord.Member]
no the last part ig
I don't see where this could happen elsewhere
BRUH
@tiny ibexhttps://github.com/Vincydotzsh/ncspy/tree/master/examples
Can't download songs -_- / No example provided
ok i think this is the one
sorry im new to python
I think you have to refetch the message
wdym
Is there any cause for a bot to shut itself down inside a VPS?
newsomethingfornoreason, message = ... #here, you get the message without reaction
message.add_reaction(...) #here, you add the reactions on the discord side
#newsomethingfornoreason.reactions is empty here because newsomethingfornoreason's a whole different object
I'm not sure if add_reaction updates the message object, not just discord side
maybe try getting message.reactions instead of the other one
Why does it takes so long for the bot to start ?? Mine takes nearly 7 minutes

@tiny ibexonly what i found sorry
users = await new_susi.reactions[0].users().flatten() ❌
users = await message.reactions[0].users().flatten() ✅
you come here to either off-topic someone or eat popcorn
yes
ahh alr ty for that
stalker
@tiny ibexu can check soundcloud wrapper and donwload from there?
what did you even do
it shouldn't take more than 10 seconds
stop saying this 
a discord bot ?
SoundCloud doesn't allow to download music
it's truth 
ToS again
I agree with u
just a regular music bot
I also send messages like Hmm then and use the ot command repeatedly 
but but u can download on website right?
ew
doublemoral much? 😄
I can download on website from NCS too
?
atleast not downloading from youtube/spotify, right?
lavalink.
ew
You can never download from spotify lol
That's YouTube or SoundCloud
you can if u have premium
both + spotify and files
many stream music from spotify
No they get data from Spotify and stream music from some other place
download = ewww
lavalink = ewww
what would satisfy you ?
not music bot
vitamine D
You can't stream from spotify lol

lmaooooooooo
get track on spotify api and search on yt
original question incase someone forget
^ lol why search spotify api then go against ToS on yt makes no sense
Lmao you are getting song's info from Spotify's API not the song
that is what I just said.
"and search on yt"
Yeah......... I just repeated it for myself
And download from yt is against ToS
download torrents NCS packs 😄
I don't download a thing.
Your LavaLink node does-
streaming is literally downloading while playing
and youtube doesn't get money from it cuz no views -> youtube no like that -> against ToS
Does more servers make discord bot start slower ?
not what i know
if you enable all intents for no reason, yes
cant enable all
usually, if your bot is in more servers, you disable the intents you don't need
well can but didnt get all
I only use intent which I need.
How do I make a word a link
you know a hyperlink
turns the word blue then when we click redirects us to the website
you can only do that in embeds and like this
[text](url)
!d discord.Embed.url
The URL of the embed. This can be set during initialisation.
hm
You can do it outside embeds too......
Idk how but you can......
Can someone tell me how it's done......?
because interactions are just webhooks
Oh.....
how to tho
i think he try say u can do that outside embeds if using webhooks
I remember looking this up a few months ago. You can't have hyperlinks outside of embeds actually...
Found it: https://www.reddit.com/r/discordapp/comments/fumcsq/how_do_i_make_text_a_clickable_linkhyperlink_on/
1 vote and 2 comments so far on Reddit
you can
no, you cant
Making a link hidden behind text like this is not possible in a normal user message, you can only send the full link itself
thats a webhook
yes
not a normal user message
still text 
Well interactions are also webhooks
fun fact: you can hyperlink applications inside of messages
Wym
I'll show later
Okay
oo i see
can i use ctx.guild.created_at to get the creation date of a guild or is it different
that is the creation date of the guild in datetime.datetime format
Yes, but the datetime will be in UTC
Yea
!d discord.Guild.created_at use the command?
property created_at: datetime.datetime```
Returns the guild’s creation time in UTC.
Lol
I didn't know how to use it till now, lemme try it now.
The only issue is that u gotta specify the whole path
Got it now. Thanks.
can i get a example
---- open web browser, search engine, type the query, wait for the search to finish, click on the link, wait for the page to get loaded, click on the search button, type the whatever, search through the list of links, copy paste the link, tab in to discord, paste it, send it, wait for the message to reach the server
and you complain about paths
its worse on a mobile since the website takes a good minute to load 
you will need to use an interaction or a webhook or an embed to do so
get good internet
this tbh
The docs website reloads slow, not only for me, but for most people on mobile. Same was the case with disnake docs, but they fixed it somewhat
Also this happens only when I want to go to a specific class, like discord.Intents, soooo
yeah disnake docs are slow
oh yeah, using the search bar takes hella lot of time
Now who should get a better internet? 👀
Well, disnake somewhat fixed the issue
is that a challenge? 👀
Lmao nah, jk

~~posts 950mb/s internet ~~
caeden be flexing
Might as well made it a GB
no?
!ot
Off-topic channel: #ot2-never-nester’s-nightmare
Please read our off-topic etiquette before participating in conversations.
950 looks bigger
all docs take a bit of time to load in mobile
Yea
❤️ like caed's-
nvm 
1024 Mbps
is a gb in windows


