#discord-bots

1 messages · Page 766 of 1

final iron
#

(I am a computer nerd)

slate swan
#

same

#

😩

final iron
#

15.4k messages in bapo

slate swan
final iron
#

My cpu isn't rated for 3200mhz anyway

slate swan
slate swan
final iron
#

rx570 (8gb vram) and r5 2600

slate swan
final iron
#

What

slate swan
#

😭

final iron
#

Why

slate swan
#

a rx570 what do you run games on your cpu😭

final iron
#

I don't do much gaming

#

Just halo infinite

slate swan
#

😭

final iron
#

And halo mcc

slate swan
#

dang that poor gpu

final iron
#

¯_(ツ)_/¯

#

I have good airflow

#

Might need to repaste soon though. Today I reached 76c max in game

slate swan
#

and its in the rug

slate swan
final iron
#

Market is top tier shit rn

slate swan
#

yes

#

i saw a 3060ti for 800

#

when i got my 3060 for msrp😩

native wedge
#

is the pebblehost discord hosting any good?

final iron
#

I got my card for $80 cad

slate swan
final iron
#

Repasting is going to be fun

slate swan
final iron
#

No

slate swan
#

only did for the gpu

final iron
#

Why would I buy a prebuilt if I'm fully capable to build my own?

slate swan
final iron
#

Not really smart considering you're just buying a bucket of ewaste just for the gpu

slate swan
#

im gonna buy new ram an cpu cooler one fan

final iron
#

You should join the bapo discord

slate swan
final iron
#

A lot of interesting people there

dapper grotto
#

when I bought my GPU almost 3 years ago... people were telling me to wait

#

and it's still worth the same today than it was back then

slate swan
#

which

dapper grotto
#

2070

slate swan
final iron
#

yes really

slate swan
#

nope

final iron
#

How many ram dimms?

slate swan
final iron
#

Ah

slate swan
#

4 ofc

final iron
#

4x4

#

Is uh

slate swan
#

im running dual channel as well

final iron
#

4x4 is pretty unsellable at this day and age

slate swan
#

and i have a 3tb hdd i just need a sata cable so i can have 4.5tb

slate swan
final iron
#

How many ram sticks

slate swan
#

2 im running dual channel

#

tforce vulcan z

final iron
#

I'm guessing 1.2k usd?

slate swan
#

yes

#

im gonna change them for corsair ones

final iron
#

Why though

slate swan
#

that have rgb for more fps of course

final iron
#

Just get light strips if you want rgb

slate swan
slate swan
final iron
#

You shouldn't be mixing ram

#

Its a very bad idea

slate swan
#

im not mix matching

#

im gonna buy a 4kit wtf

final iron
#

Then buy a 2x16 kit

slate swan
#

no

final iron
#

Less stress on the memory controller

slate swan
#

no

#

4x32

final iron
#

Yes

#

Now thats a lot of ram

slate swan
#

can my board handle that let me check lol

#

my board is an aSUS

final iron
#

Are you actually planning on buying that?

slate swan
#

yes

final iron
#

Are you actually using the ram?

slate swan
#

no

final iron
#

Then why buy it?

slate swan
#

the homework folder😳

final iron
#

🏃

slate swan
#

im joking some apps take allot of ram sometimes but im not rushing the ram tbh

#

i have to save first for a new chair and desk

dapper grotto
slate swan
#

why not🏃

dapper grotto
#

I got 32 ram with my 2070

#

and by the way it was cheaper back then

slate swan
#

not bad

dapper grotto
#

I found the receipt ~

slate swan
#

lovely

final iron
#

Just bought a new mouse pad

slate swan
#

now a 2070 cost like 8k

slate swan
cold sonnet
#

wth

final iron
#

I ordered the glide 38 and then realized I fucking hate hard mouse pads

slate swan
#

i have the steelseries qck in xlarge

#

i want to try glass mouse pads

final iron
#

Would not recommend

slate swan
#

i wanna see the glide

final iron
#

Stay with cloth

#

Just get a mouse with good skates or replace your stock ones

slate swan
final iron
#

I did a semi peripheral upgrade

#

Changed mouse and deskpad

slate swan
#

which mouse

final iron
#

Razer basilisk x hyperspeed

slate swan
#

mhmmmmm

final iron
#

Old mouse was the g502 hero

slate swan
#

i see no difference

#

only side buttons

final iron
#

wired to wireless

slate swan
#

yes

#

i got the g203 prod

final iron
#

The whole reason I got this razer mouse was because I really enjoyed the shape of the g502

slate swan
final iron
#

Cuz no wire

slate swan
#

and detail

final iron
#

Also this one has no rgb but it literally does not matter because even if it did have rgb your hand would be blocking it

final iron
#

I could upgrade my build if I want to

#

I currently have more money to spend than the build is currently worth

slate swan
#

gpu outage tho

final iron
#

The only part of my build that I would upgrade is the gpu

slate swan
#

yes

final iron
#

If we get lucky we will be able to do that in q3 2022

slate swan
#

only if

dapper grotto
#

I'll say it again in case there are new people reading

#

has anyone tried a trading bot?~

slate swan
#

i think no

#

thats a really good idea ngl

dapper grotto
#

I did one once

slate swan
#

nice

dapper grotto
#

but it would be nice to have someone to talk about it

slate swan
#

ikr

dapper grotto
#

all I find are crypto scammers (?

slate swan
#

dang

deft peak
#

have a look at yt

#

jacob amaral has some pretty good video's on crypto trading bots

final iron
#

Anyone got any ideas on some commands I could make?

slate swan
final iron
slate swan
leaden chasm
#

somehow my command isn't working. Every time I attempt to to run the help command from cog it doesn't work. If anyone could help me I would appreciate it.

slate swan
#

have you loaded the cog

native wedge
#

what is the website that makes embeds and gives you the code for it?

#

found it nvm

leaden chasm
final iron
slate swan
slate swan
final iron
hoary cargo
leaden chasm
slate swan
slate swan
#

thats kinda funny and useless

native wedge
#

ok i will stop using it

slate swan
#

no you can but you should learn to do it yourself

hoary cargo
#

wtf_tom how tf you disable the button after being used one time if you put disabled = True it will just send it disabled

slate swan
#

read that again

hoary cargo
#

what

slate swan
#

read what you said

slate swan
#

im not sure what you mean tbh

hoary cargo
slate swan
#

.disabled = True

#

and when you disable it just update the view

hoary cargo
heavy folio
#

uh no? you set it disabled only after you finish doing stuff in the callback

hoary cargo
#

Hmm ok i will try

slate swan
fleet sparrow
#

Hello again xd

is there a way to do something when someone removes reaction ?

    while True:
        reaction, user = await client.wait_for('reaction_add', check=check)
        if count >= partc:
            await ctx.send('ya no hay mas cupos')
            return
        else:
            count += 1
            embedd = discord.Embed(description=f'Nombre del juego: **{game}**\nParticipantes: **{count}/{partc}**\nPremio: **{price}** usd\n\n\nPara descargar el juego haz click [aqui]({download})', color=discord.Colour.purple())
            embedd.set_footer(text='Para participar en el torneo reacciona con el emoji de check arriba ')
            embedd.timestamp = datetime.datetime.utcnow()
            embedd.set_thumbnail(url=ctx.guild.icon_url)
            await msg.edit(embed=embedd)
            await user.add_roles(role)```
final iron
#

Except for the nvidia one

#

But thats not enough

#

Any other command ideas?

slate swan
slate swan
final iron
#

Oh something I've been meaning to ask

#

I was told that you can only pass in a list of 24 elements to a slash command autocomplete

#

Is this true?

hoary cargo
slate swan
#

you use components

final iron
#

Also, can I use the is_owner decorator on a slash command?

slate swan
#

i thought you subclassed View

slate swan
hoary cargo
heavy folio
#

now show your code

slate swan
#

!d disnake.ui.View

unkempt canyonBOT
#

class disnake.ui.View(*, timeout=180.0)```
Represents a UI view.

This object must be inherited to create a UI within Discord.

New in version 2.0.
hoary cargo
heavy folio
#

send code

final iron
slate swan
final iron
#

Is there any way I can hide the command from the user?

#

Because it still shows

#

It just will fail

slate swan
#

not sure

hoary cargo
# slate swan wut

well, i work with embeds, so i kinda need to put the callback inside the commands peeposhrug it is what it is

hoary cargo
#
class GreenButt(Button):
    def __init__(self, label, emoji=None):
        super().__init__(label=label, style=discord.ButtonStyle.green, emoji=emoji)


class CancelButt(Button):
    def __init__(self, label):
        super().__init__(label=label, style=discord.ButtonStyle.grey, emoji='🗑️')



class ViewZ(View) :
    def __init__(self, member: disnake.Member):
        self.member = member
        super().__init__(timeout=60)

    async def interaction_check(self, inter: disnake.MessageInteraction) -> bool:
        if inter.author != self.member:
            await inter.response.send_message(content="You don't have permission to press this button.", ephemeral = True)
            return False
        return True
``` ![peeposhrug](https://cdn.discordapp.com/emojis/821559657419505704.webp?size=128 "peeposhrug")
heavy folio
#

the part related to your error?

hoary cargo
# heavy folio the part related to your error?
            async def button_callback(inter):
                await inter.response.send_message(embed=embed2)
            button1.callback = button_callback

this is inside a slash command, and after someone clicking this button i want it to be disabled
i tried with await inter.edit_original_message(view=self) and i received the components error Hmm

final iron
#

Is there a feature in slash commands which only allows the user to type in certain inputs?

#

Sort of like they have to choose from a list for what to input?

slate swan
#

I like Disnake equally ,but prefer hikari over it

#

bored with the dpy syntax

final iron
#

Actually I think I figured it out

#
@bot.slash_command()
async def blep(
    inter: disnake.ApplicationCommandInteraction,
    animal: str = commands.Param(choices=["Dog", "Cat", "Penguin"])
):
    await inter.response.send_message(animal)
#

Took a look at the docs

#

disnake docs are pretty lacking on slash commands imo

leaden chasm
final iron
#

Therefore the functions have to have what first in their parameters...?

leaden chasm
#

could you show an example?

#

im confused sorry

#

mb i forgot to add self

boreal ravine
#

they showed the slashcommand menu without typing /

#

nvm

rocky canopy
#

anyone here know how to get the bot to connect to vc? been trying to find a video on it and nothing works

polar ice
#

Any advice which is the best libary to use for discord interactions?

green bluff
#

how to make a command case sensitive

#

like !HELLO and !Hello and !hello would return the same

#

or not case sensitive idk

#

i mean not case sensitive

slate swan
#

!d discord.ext.commands.Bot

unkempt canyonBOT
#

class discord.ext.commands.Bot(command_prefix, help_command=<default-help-command>, description=None, **options)```
Represents a discord bot.

This class is a subclass of [`discord.Client`](https://discordpy.readthedocs.io/en/master/api.html#discord.Client "discord.Client") and as a result anything that you can do with a [`discord.Client`](https://discordpy.readthedocs.io/en/master/api.html#discord.Client "discord.Client") you can do with this bot.

This class also subclasses [`GroupMixin`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.GroupMixin "discord.ext.commands.GroupMixin") to provide the functionality to manage commands.
slate swan
#

has the kwarg

#
case_insensitive=True
final iron
#

!pypi disnake

unkempt canyonBOT
final iron
#

They really need to implement slash commands

slate swan
#

they have?

final iron
#

Referring to the python bot

slate swan
#

OH

#

lollllll

pliant gulch
#

why though

final iron
#

Auto complete with pypi would be nice

pliant gulch
#

That would put quite the strain on the bot

slate swan
#

im not sure if thats a good idea tbh

pliant gulch
#

Auto suggestion for every package in pypi

slate swan
#

thats allot of load

pliant gulch
pine crown
#

how to make discord buttons on embeds?

slate swan
pine crown
slim ibex
slim ibex
pine crown
#

wat

slate swan
#
await ctx.send(embed=embed, view=view)
#

embed is an instance of a Message

slim ibex
pine crown
#

how do i use that view

slate swan
#

you can add it directly as well

slim ibex
#

so you can just equal view to view and it works

slate swan
#

its the same thing

#

just an instance of it

slim ibex
#

k

polar ice
#

@slate swan Looks good, Do you know if its possible to have a coloured button with a link? or just the basic grey button?

slate swan
#

!d disnake.ButtonStyle

unkempt canyonBOT
#

class disnake.ButtonStyle```
Represents the style of the button component.

New in version 2.0.
slate swan
#

check their

pine crown
#

how to make that

polar ice
#

@slate swan Ive tried it in other libaries but cant seem to get the link working unless i use the link button which is automatically grey?

pine crown
# slate swan check their

i dont understand how to create a embed with button with just await ctx.send(embed=embed, view=view) bruh

slate swan
unkempt canyonBOT
#

class disnake.Button```
Represents a button from the Discord Bot UI Kit.

This inherits from [`Component`](https://docs.disnake.dev/en/latest/api.html#disnake.Component "disnake.Component").

Note

The user constructible and usable type to create a button is [`disnake.ui.Button`](https://docs.disnake.dev/en/latest/api.html#disnake.ui.Button "disnake.ui.Button") not this one.

New in version 2.0.
pine crown
#

i dont even know how to make a btton

slate swan
#

it has a url kwarg

pine crown
#

how do u know i use disnake

slate swan
#

!d discord.Button

unkempt canyonBOT
#

class discord.Button```
Represents a button from the Discord Bot UI Kit.

This inherits from [`Component`](https://discordpy.readthedocs.io/en/master/api.html#discord.Component "discord.Component").

Note

The user constructible and usable type to create a button is [`discord.ui.Button`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.Button "discord.ui.Button") not this one.

New in version 2.0.
pine crown
slate swan
pine crown
#

):

#

i dont even know how to make the button ):

#

i even read it

slate swan
final iron
#

I have no clue what I should make

#

I'm so bored

slate swan
#

so i just pushed myself and made a bad api wrapper

final iron
#

Maybe I should make a docs command with options

slate swan
#

with aiohttp

#

does docs use aiohttp im not sure

final iron
#

How could I use choices with it?

slate swan
#

im not sure

#

like dropdowns?

#

of choices?

final iron
#

Lemme find it in the docs

#

!d disnake.ext.commands.Param

unkempt canyonBOT
#
disnake.ext.commands.Param(default=Ellipsis, *, name='', description=None, choices=None, converter=None, convert_defaults=False, autocomplete=None, channel_types=None, lt=None, ...)```
A special function that creates an instance of [`ParamInfo`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.ParamInfo "disnake.ext.commands.ParamInfo") that contains some information about a slash command option. This instance should be assigned to a parameter of a function representing your slash command.

See [Parameters](https://docs.disnake.dev/en/latest/ext/commands/slash_commands.html#param-syntax) for more info.
slate swan
#

this can help you

final iron
#

choices kwarg

slate swan
#

!src d

unkempt canyonBOT
#
Command: docs

Look up documentation for Python symbols.

Source Code
final iron
#

Its really complicated

polar ice
#

Is there a way to return the admin role id from guild?

slate swan
#

when your functions look like this to follow pep8😔

@button(
    label="Cancel",
    style=ButtonStyle.red,
    emoji="❌"
    )
async def cancelcallback(
    self,
    interaction: MessageInteraction,
    button: Button) -> None:
    await interaction.send(
        f"You have cancelled to ban {self.member.name}",
        ephemeral=True
        )
    self.stop()
boreal ravine
boreal ravine
#

i think thats what they meant anyways

slate swan
boreal ravine
#

it broke the last time I used it

#

they told me to use another method for autocomplete which is weird

boreal ravine
#

thats a fork lemon_pika

quick gust
#

no it's not lmao

#

afaik it's Andy's wrapper which he wrote from scratch

slate swan
#

the rin i made is a fork to make a pr

slate swan
quick gust
#

oh

slate swan
quick gust
#

i thought a dpy fork

slate swan
quick gust
#

ah nice

slate swan
#

still learning and got allot ahead of me lol

boreal ravine
#

he forked andys wrapper

#

and claims he made it

slate swan
#

your slow

quick gust
#

No he doesn't claim it

slate swan
#

and i never said i claimed it i respect andy and allot

quick gust
#

You're looking for a discord api wrapper specifically

boreal ravine
#

yes

slate swan
#

im an andy simp tbh

quick gust
#

He made a Twitter api wrapper

slate swan
boreal ravine
slate swan
#

everything i do isnt related to dpy ffs

fleet sparrow
#
@client.command()
async def button(ctx):
    await ctx.send('test', components=[Button(label='test')])
    interaction = await client.wait_for('button_click', check=lambda i: i.component.label.startswith('Click'))
    await interaction.respond('Test')```

Why dont reply ?
fleet sparrow
#

why

slate swan
#

cause you insert the label as 'text' and you are checking 'Click'

#

its not a related to dpy😠

slate swan
slate swan
#

😔 what is that for then?

slate swan
fleet sparrow
slate swan
slate swan
slate swan
#

ofcourse

#

it would be lovely if you would help outpithink

#

atleast make a setup for discordheximals 😔 that project is good and it feels bad when you cannot import it directly by just installing it

slate swan
#

gimme a moment , ill show

#

okie

#

mhm so how can i fix it

#

my wrapper in the back like: 🧍‍♂️

boreal ravine
slate swan
#

!pypi discordheximals

boreal ravine
#

so you'd have to copy the code

unkempt canyonBOT
slate swan
#

wut

slate swan
#

its just not being imported

boreal ravine
#

ok

boreal ravine
#

it is on pypi

slate swan
#

yea thats the only thing missing

boreal ravine
#

setuptools module 👍

slate swan
#
import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

setuptools.setup(
    name="discordheximals",
    version="0.0.3",
    author="okimii",
    description="returns hexcode by name for discord.py and its forks",
    url="https://github.com/Okimii/discordheximals",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    package_dir={"": "src"},
    packages=setuptools.find_packages(where="src"),
    python_requires=">=3.6",)
boreal ravine
slate swan
#

it works even with 2.x

#

since all it does is returning int

#

tutorial😩

boreal ravine
slate swan
slate swan
#

doesnt pypi use that repo for the module installation?

#

:0 , push the setup file

slate swan
slate swan
slate swan
#

lemme check how it actually works

#

done

#

the download_url kwarg , oh u already have a url

slate swan
#

okie

#

you still need to update it on pypi , ask someone who is experienced with it ( andy maybe cough cough)

#

no i know how

#

ah , so just update it there too

#

give me a sec i forgot the command lines

slate swan
#

Lmao

slate swan
#

and out of all the forks i find disnake best

slate swan
slate swan
slate swan
slate swan
#

my eyes disapprove that

slate swan
#

great

#

does it work?

#

ow no , add the download url kwarg

#

you did wut

#
$python -m pip install -U discordheximals
#

yesss

#

it stills has issues with the import

#

weird

#

ive followed everything correctly

#

the download_url kwarg

#

wym

#

im not sure tbh

#

you can import it like

from discordheximals import discordheximals 

right

#

since ive never published any package on pypi , you may ask to someone experienced

slate swan
#

My master

slate swan
#

thats what i use

#

its good

boreal ravine
#
python setup.py sdist

twine upload dist/*
``` I think was how to upload a package
slate swan
boreal ravine
#

!pypi myreplitdb

unkempt canyonBOT
boreal ravine
#

totally not mine

slate swan
#

is that why i cant do

import discordheximals
#

or no

slate swan
#

thonk

boreal ravine
#

you could make it a folder tho ```
discordhexadecimals/

slate swan
#

thats how i have it lol

#
 ├───hex
│   │   ├───.idea
│   │   │   └───inspectionProfiles
│   │   ├───dist
│   │   ├───src
│   │   │   └───discordheximals.egg-info
│   │   └───tests
#

lol

boreal ravine
#

@slate swan why staticmethod?

slate swan
#

cause there staticmethods

#

i'd use it as a property instead Exit

boreal ravine
#

yep

boreal ravine
#

since it returns int, property seems nice

slate swan
#

how would i?

#

may i get an example on how exactly

boreal ravine
slate swan
#
class ColorImpl:
   @property
   def red(self):
      return

Color = ColorImpl()

and then i can do Color.red ez

boreal ravine
#

yes

slate swan
#

so it wont have ()

#

you wont have to use ()

#

yes

boreal ravine
slate swan
#

find and replace is from the heavens😩

boreal ravine
#

its an attr of the class basically

slate swan
#

yeah

maiden fable
unkempt canyonBOT
pliant gulch
#

Making them all properties means a you'd have un-used colours

maiden fable
#

Official

pliant gulch
#

Imagine using a class only for one colour and getting 2000 of them

maiden fable
#

🤣

slate swan
boreal ravine
maiden fable
unkempt canyonBOT
#

myreplitdb/database.py line 1

from replit import db```
boreal ravine
#

did anyone realize Corey is here

#

🤯

slate swan
#

who

pliant gulch
#

Schafer?

slate swan
#

not sure who

maiden fable
boreal ravine
maiden fable
#

Wait, I feel like I have heard the name

pliant gulch
#

Yea I saw him a while back in here

slate swan
#

whooooo

#

😠

boreal ravine
boreal ravine
slate swan
#

oh

slate swan
maiden fable
#

Me who doesn't watch any tutorials: AP_pepeOK

boreal ravine
#

ok

slate swan
#

just saw his yt should watch some vids they look interesting

#

who watches tutorials when you can just copy paste code from github 8797nowletmethink

maiden fable
#

But yea seriously, as long as I don't want to spoonfeed myself, I don't watch yt vids

slate swan
#

i just ask andy😩

boreal ravine
maiden fable
#

Hmm I learnt OOP from programbiz and other random websites while doing discord.py

boreal ravine
#

same

#

realpython 🤯

maiden fable
#

Mhm

slim ibex
#

he is amazingt

maiden fable
#

Anyways it's OT

boreal ravine
maiden fable
#

totally not a boomer

slate swan
#

dw , we've been continuing with ot chats for more than 30 mins

#

great talk

slate swan
maiden fable
maiden fable
slate swan
#

whos oki

maiden fable
#

okimii

slate swan
slate swan
maiden fable
#

Oh

slim ibex
maiden fable
slate swan
#

its alr most people call me oki idk why

#

my name is only 6 char smh

maiden fable
#

Cz okimii = oki

slate swan
#

😠

maiden fable
slim ibex
#

6 char

slate swan
slate swan
maiden fable
#

Anyways imma stop talking here before mina raises the ban mute hammer here

slate swan
maiden fable
slate swan
#

off-topic.

slate swan
unkempt canyonBOT
slate swan
#

cof cof

#

well

slate swan
#

.topic

lament depotBOT
#
**What feature would you be the most interested in making?**

Suggest more topics here!

maiden fable
#

I just told it was OT talk, a few minutes back and no one responded positively

slim ibex
#

a user!

slate swan
#

this channel is not for casual talk.

maiden fable
slate swan
slate swan
maiden fable
#

Wym

slate swan
maiden fable
#

Yea, ig

boreal ravine
#

string slicing idk

#

or you can count the newlines

slate swan
maiden fable
#

Also u can't get the user's about me from the API bruv

boreal ravine
maiden fable
#

Huh???

slate swan
slate swan
#

cap cap cap

maiden fable
#

Well a better way would be to do string slicing, as kayle suggested

boreal ravine
slate swan
#

@slate swan @slate swan take your conversation somewhere else

maiden fable
#

okimii mind going to OT to continue your talk?

maiden fable
visual yarrow
#

Yep, would you guys mind going to one of the off-topic channels please.

maiden fable
#

Phew, thanks LX

slate swan
verbal cairn
#

y learn dpy

visual yarrow
#

Where does the about me come from? Do users enter it somewhere?

boreal ravine
slate swan
#
if len(desc.split('\n'))>20:
   desc = desc.split('\n')[:20]``` something like shis should work
maiden fable
maiden fable
verbal cairn
#

oh

visual yarrow
slate swan
slate swan
visual yarrow
#

Ah right. So do you want to enforce this constraint at the time that they enter the info, or at the time that it is displayed (i.e. truncate it to so many lines)?

slate swan
slate swan
boreal ravine
#

databases

slate swan
boreal ravine
vale cedar
#

Can some1 give me an example for get user name of each server bot is in pls!!!

pliant gulch
unkempt canyonBOT
verbal cairn
#
if message.content.startswith('$myuser'):
    name = message.author
    nick = name.name
    user_id = name.id
    await message.channel.send(f'{nick}\'s ID is {user_id}')
slate swan
visual yarrow
#

Could you possibly show the code for the command to input the information?

verbal cairn
#

.name shows nick of a discord.Member

pliant gulch
vale cedar
pliant gulch
#

!e ```py
a = "123"
print(a[:5])

unkempt canyonBOT
#

@pliant gulch :white_check_mark: Your eval job has completed with return code 0.

123
slate swan
unkempt canyonBOT
slate swan
slate swan
unkempt canyonBOT
#

property members: List[discord.member.Member]```
A list of members that belong to this guild.
slate swan
slate swan
verbal cairn
#
@bot.command()
async def members(ctx, *name):
        new_name = " ".join(name)
        guild_str = "'''yaml\n"
        counter = 0
        embed = []
        for guild in bot.guilds:
            if guild.id == 899998353184665620:
                pass
            else:
                if guild.name == new_name:
                    for i in range(len(guild.members)):
                        f = f"Discord: {guild.members[i].name:<25} | Nick: {str(guild.members[i].nick):<25}\n"
                        if len(guild_str + f) > 1024:
                            embed.append(disnake.Embed(title=f"SkyBlock Bazaar: Members",
                                                       color=disnake.Colour.gold(),
                                                       description=f"Members in server {new_name}",
                                                       url=url_link))
                            embed[counter].add_field(name=f"**Discord Members**",
                                                     value=guild_str[:1024] + "'''",
                                                     inline=True)
                            embed[counter].timestamp = datetime.now()
                            counter += 1
                            guild_str = "'''yaml\n"
                        else:
                            guild_str += f
        if len(guild_str) >= 1:
            try:
                embed.append(disnake.Embed(title=f"SkyBlock Bazaar: Members",
                                           color=disnake.Colour.gold(),
                                           description=f"Members in server {new_name}",
                                           url=url_link))
                embed[counter].add_field(name=f"**Discord Members**",
                                         value=guild_str + "'''",
                                         inline=True)
                embed[counter].timestamp = datetime.now()
            except IndexError:
                pass
        embed[0].set_footer(text=f"Page 1 of {len(embed)}")
        view = FullMenu(embed, ctx.author.id)
        msg = await ctx.send(embed=embed[0], view=view)
        await view.wait()
        await msg.edit(view=None)
slate swan
verbal cairn
#

this is a really scuffed command

#

but its basically what u want!

slate swan
verbal cairn
#

the view is

class FullMenu(disnake.ui.View):
    message: disnake.Message

    def __init__(self, embeds: list[disnake.Embed], member_id: int):
        super().__init__(timeout=90.0)
        self.embeds = embeds
        self.embed_count = 0
        self.member_id = member_id

    async def interaction_check(self, inter) -> bool:
        return inter.author.id == self.member_id

    async def on_timeout(self):
        await self.message.edit(view=None)

    @disnake.ui.button(emoji=disnake.PartialEmoji.from_str("![backtrack](https://cdn.discordapp.com/emojis/927549352883400724.webp?size=128 "backtrack")"), style=disnake.ButtonStyle.blurple)
    async def first_page(self, button: disnake.ui.Button, interaction: disnake.MessageInteraction):
        if self.embed_count != 0:
            self.embed_count = 0
            embed = self.embeds[self.embed_count]
            embed.set_footer(text=f"Page 1 of {len(self.embeds)}")
            await interaction.response.edit_message(embed=embed)

    @disnake.ui.button(emoji=disnake.PartialEmoji.from_str("![arrowleft](https://cdn.discordapp.com/emojis/927549311359787068.webp?size=128 "arrowleft")"), style=disnake.ButtonStyle.blurple)
    async def back_a_page(self, button: disnake.ui.Button, interaction: disnake.MessageInteraction):
        if self.embed_count != 0:
            self.embed_count -= 1
            embed = self.embeds[self.embed_count]
            embed.set_footer(text=f"Page {self.embed_count + 1} of {len(self.embeds)}")
            await interaction.response.edit_message(embed=embed)

    @disnake.ui.button(emoji=disnake.PartialEmoji.from_str("![arrowright](https://cdn.discordapp.com/emojis/927549335523176518.webp?size=128 "arrowright")"), style=disnake.ButtonStyle.blurple)
    async def next_page(self, button: disnake.ui.Button, interaction: disnake.MessageInteraction):
        if self.embed_count != (len(self.embeds) - 1):
            self.embed_count += 1
            embed = self.embeds[self.embed_count]
            embed.set_footer(text=f"Page {self.embed_count + 1} of {len(self.embeds)}")
            await interaction.response.edit_message(embed=embed)

    @disnake.ui.button(emoji=disnake.PartialEmoji.from_str("![fastforward](https://cdn.discordapp.com/emojis/927549369417363527.webp?size=128 "fastforward")"), style=disnake.ButtonStyle.blurple)
    async def last_page(self, button: disnake.ui.Button, interaction: disnake.MessageInteraction):
        if self.embed_count != (len(self.embeds) - 1):
            self.embed_count = (len(self.embeds) - 1)
            embed = self.embeds[self.embed_count]
            embed.set_footer(text=f"Page {len(self.embeds)} of {len(self.embeds)}")
            await interaction.response.edit_message(embed=embed)
#

in disnake

visual yarrow
#

Alright. That looks like it's already checking the number of lines. What is it not doing currently that you would like it to?

slate swan
#

and not name

vale cedar
#
User_name =(self.bot.get_guild(guild.id).members.name)

Not working ....

final iron
vale cedar
slate swan
slate swan
final iron
#

!e

list_ = ["user 1", "user 2", "user 3"]
for i in list_:
    print(i)
unkempt canyonBOT
#

@final iron :white_check_mark: Your eval job has completed with return code 0.

001 | user 1
002 | user 2
003 | user 3
slate swan
final iron
pliant gulch
visual yarrow
#

Nice! Btw, a quick note on code style: deal with the error conditions first. E.g. ```py
def some_func():
if error_condition_1:
# Send an error message.
return
if error_condition_2:
# Send an error message.
return
# The rest of the code.

slate swan
slate swan
final iron
#

So i will become your member object

slate swan
slate swan
slate swan
slate swan
slate swan
slate swan
visual yarrow
#

Yeah, not a huge difference.

slate swan
heavy folio
#

does discord-ext-menus use buttons or reactions

visual yarrow
#

But it will if you add more conditions.

slate swan
slate swan
heavy folio
#

they are

slate swan
#

its in the master branch , not the stable build

heavy folio
#

ah yeah

slate swan
#

"not released"

slate swan
slate swan
slate swan
#

.topic

lament depotBOT
#
**What feature would you like to see added to the library? What feature in the library do you think is redundant?**

Suggest more topics here!

heavy folio
#

but in the paginated help walkthrough, they were subclassing menus.something i forgot

#

and they got buttons

slate swan
heavy folio
#

so im actually confused between menus and buttons

slate swan
slate swan
slate swan
slate swan
slate swan
pliant gulch
slate swan
slate swan
slate swan
slate swan
slate swan
#

😳

#

.topic

lament depotBOT
#
**Do you think there's a way in which Discord could handle bots better?**

Suggest more topics here!

slate swan
slate swan
visual yarrow
slate swan
#

no more message intents😩

urban shell
#

hey peeps,
can someone help me regarding how to check if a member has left a particular vc, this is what I've tried so far -

@client.event
async def on_voice_state_update(member, before, after):
    if not after.channel and before.channel.id == vc_id:
        print('success!')
slate swan
slate swan
#

Will features like anti spam, etc etc, stop working?

quick gust
#

of course

slate swan
#

you cant access the msgs content

quick gust
#

only if your bot is in 100+ servers or verified, and doesn't have message intent (it might be 75 servers tho, not sure)

slate swan
#

Yeah I know pithink I wanted to confirm

slate swan
latent anvil
#

discord has removed the emded from the payload of the message http request?

slate swan
slate swan
quick gust
#

no u

slate swan
slate swan
slate swan
#

thats just weird

urban shell
#

😩

verbal cairn
slate swan
#

Okimii triggerred

#

slash commands are better😩

quick gust
#

They really need to improve the slash commands ux more, it's so messy from a user's point of view

verbal cairn
#

its prob bc they took 3 weeks to get to my ticket

visual yarrow
verbal cairn
#

bc of backlog/holidays

quick gust
verbal cairn
#

no not members

verbal cairn
#

no members yeah

slate swan
verbal cairn
#

members is a priviledged

quick gust
#

everyone has that tho

#

huh

verbal cairn
#

SERVER MEMBERS INTENT
Required for your bot to receive events listed under GUILD_MEMBERS.

NOTE: Once your bot reaches 100 or more servers, this will require verification and approval. Read more here

quick gust
#

i got it without making a ticket or anything lmao

pliant gulch
verbal cairn
#

its not required

slate swan
verbal cairn
#

like if ur bot only uses commands

quick gust
#

¯\_(ツ)_/¯

visual yarrow
echo wasp
#

How would I make a currency system to hold your amount of coins ya have

quick gust
#

that's probably it

pliant gulch
visual yarrow
echo wasp
quick gust
slate swan
quick gust
#

I personally learnt sql from another dev, so not sure if there are any good online tutorials for it. You can just read the docs i guess

pliant gulch
#

That's the driver for sqlite you want to first learn SQL itself

visual yarrow
pliant gulch
#

Using the tool without reading the manual beforehand is pretty much a shot in the dark

slate swan
#

aiosqlite is the bridge of sqlite which as the name says you have to learn the sql syntax

echo wasp
#

I have heard of it never used it

slate swan
#

which it can see ofc

slate swan
#

after verification ofc

slate swan
echo wasp
#

So where do I start

pine crown
#

how to make a embed that has buttons on it i keep getting errors

slate swan
quick gust
slate swan
echo wasp
#

Ok how long you think learning it will take?

pine crown
visual yarrow
pine crown
#

its a url buton

slate swan
slate swan
pine crown
slate swan
slate swan
visual yarrow
slate swan
#

ow wait it uses pickle

#

yea

pine crown
# slate swan show the coro
@client.slash_command(description="Shows bot info")
async def botinfo(ctx): 
  invite = Button(style=ButtonStyle.URL, label="✅ Support Server", url="google.com")
  embed=disnake.Embed(color=0xb30000, title="PexiBot Invite Link!", description="Join Our Support server and report bugs!")


  await ctx.send(
    embed=embed,
    components=[
      [invite]
    ]
  )
echo wasp
#

If you have one

slate swan
shadow wraith
echo wasp
shadow wraith
#

well disnake already has button supprot

pine crown
#

i dont know how to use taht

shadow wraith
#

oh its simple let me show an example

pine crown
zealous ember
#

hELO

slate swan
echo wasp
slate swan
#

aka a cog

#

which might confuse you

shadow wraith
#
class somjksgdjkrifushf(disnake.ui.View):
  @disnake.ui.button(label='haha this is a button', style=disnake.ButtonStyle.green)
  async def somefuncthatexecuteswhenthebuttonisclick(self, button: disnake.Button, interaction: disnake.MessageInteraction): # these params are required
    print("H")
echo wasp
shadow wraith
#

wait but thats how i remembered it

slate swan
#

you forgot __init__ and super()

slate swan
#

since your subclassing

slate swan
unkempt canyonBOT
#

disnake.ui.button(*, label=None, custom_id=None, disabled=False, style=<ButtonStyle.secondary: 2>, emoji=None, row=None)```
A decorator that attaches a button to a component.

The function being decorated should have three parameters, `self` representing the [`disnake.ui.View`](https://docs.disnake.dev/en/latest/api.html#disnake.ui.View "disnake.ui.View"), the [`disnake.ui.Button`](https://docs.disnake.dev/en/latest/api.html#disnake.ui.Button "disnake.ui.Button") being pressed and the [`disnake.MessageInteraction`](https://docs.disnake.dev/en/latest/api.html#disnake.MessageInteraction "disnake.MessageInteraction") you receive.

Note

Buttons with a URL cannot be created with this function. Consider creating a [`Button`](https://docs.disnake.dev/en/latest/api.html#disnake.ui.Button "disnake.ui.Button") manually instead. This is because buttons with a URL do not have a callback associated with them since Discord does not do any processing with it.
slate swan
#

kwarg

echo wasp
shadow wraith
#

the init isn't required but ok

slate swan
echo wasp
# slate swan you can?

Write q whole bot in a single file yes that was his goal but limits for commands and stuff makes you move out

slate swan
#

wut

shadow wraith
shadow wraith
#

weird but i have a subclass without init

slate swan
#

you havent responded to the interaction so it will say it failed

pliant gulch
#

Yea you need to run the super classes construct method otherwise your subclass won't have children or whatever it was again

echo wasp
# slate swan wut

So I know all about cogs I just was trying to stay stay one file for the person

#

Brb

slate swan
shadow wraith
#

do you agree people who use on_message event and people who use @<somevar>.command(...) are different people

slate swan
#

yes

pliant gulch
#

@bot.command depends on on_message so

shadow wraith
#

oh i didnt know that

pliant gulch
shadow wraith
#

😭

slate swan
#

ext.commands is just a command handler afterall , 02bored which uses on_message

pliant gulch
#

I've made so many command parsers from scratch now, it's kind of sad

#

😔

pine crown
slate swan
#

dont follow that

#

this is better

pine crown
slate swan
pine crown
#

i tried

#

using link example but doesnt work

slate swan
#

its basic subclassing?

pine crown
#

?

pine crown
slate swan
#

i dont spoonfeedpithink

pine crown
# slate swan nope

but i dont undersatnd anything atleast u can send the code and tell me what it means

#

thats what people used to do when i asked help

slate swan
pine crown
#

:/

shadow wraith
#

it should be pythonbites if you get the snake joke

pine crown
#

sigh

slate swan
pine crown
slate swan
unkempt canyonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

shadow wraith
#

if you are beginning with python then dont make a discord bot immediately

slate swan
#

you shouldnt be on dpy

#

since it uses async and oop

shadow wraith
#

yea

pine crown
slate swan
#

great for you

shadow wraith
#

good fro you

slate swan
#

but if you dont know the python basics we cant help you

shadow wraith
#

yes

pine crown
#

but im nto srue how to make buttons ive tried to figure it out from yesterday

slate swan
#

subclasses.

pine crown
shadow wraith
pine crown
shadow wraith
#

🤨

slate swan
#

read this^

shadow wraith
#

okimii do you have a link for everything

slate swan
pine crown
shadow wraith
shadow wraith
#

yeah i forgor

pine crown
#

the bot just doesnt want to send the button

slate swan
pine crown
shadow wraith
#

i think hes talking about discord components

slate swan
pine crown
#

even if i fully copy the thing on a example and paste it, it errors

slate swan
shadow wraith
#

!pypi discord_components uh

unkempt canyonBOT
slate swan
pine crown
#

oh and theres another problem i installed a library called discord_buttons and even when i install it and try to import its not even working

slate swan
#

all 3rd party libs are bad just use a fork tbh

echo wasp
pine crown
#

just forget it i dont want a discord bot anymore this is too hard for just a button

slate swan
polar ice
#

is it possible to get message content from an embed in a DM?

Im trying to get the IP address when "copy ip" is clicked.

slate swan
echo wasp
slate swan
#

how would discord access your clipboard

polar ice
#

I tried using interaction.message.content but because its a DM i dont get anything?

pine crown
slate swan
slate swan
forest blade
#

You have to get the Embed object and use embed.description

#

Wait that’s in a field

polar ice
slate swan
pine crown
polar ice
#

So i could just do interaction.embed.description?

slate swan
pine crown
slate swan
polar ice
#

@pine crown Whats the problem?

forest blade
quaint scaffold
unkempt canyonBOT
#

class discord.Interaction```
Represents a Discord interaction.

An interaction happens when a user does an action that needs to be notified. Current examples are slash commands and components.

New in version 2.0.
quaint scaffold
#

Do you see an embed attribute?

forest blade
#

Doesn’t work like that on mobile so idk

slate swan
#

¯_(ツ)_/¯

pine crown
forest blade
#

Interaction.message.embeds[0]

pine crown
polar ice
#

@forest bladeBecause its in a DM and i cant figure out how to do it

slate swan
#

im unsure if its only for disnake

polar ice
#

@forest blade ``` <discord.embeds.Embed object at 0x00000250364616C0>

forest blade
polar ice
#

@forest blade Sure ill give it ago, thanks 🙂

slate swan
# pine crown i dont think so you just send something that starts with ! and say kwarg
class SubClassName(disnake.ui.View): # class you want to subclass
    def __init__(self) -> None:
        super().timeout(timeout=None)

    @disnake.ui.button(label="button label", style=disnake.ButtonStyle.green, url="https://www.youtube.com/") # button component
    async def buttoncallback(self, interaction: disnake.MessageInteraction, button: disnake.ui.Button) -> None:
        await interaction.send("You have pressed the button", ephemeral=True)
@bot.command() # command
async def commandname(ctx) -> None:
    await ctx.send("Message", view=SubClassName())

cant spoonfeed you more

shadow wraith
#

did i just disremember or did you purposely not await the interaction.send

slate swan
#

coding in google is easy

#

you do wut

#

that doesn't even make any sense

maiden fable
#

"Can't spoonfeed you more" Lol

slate swan
#

lol

pine crown
#

with the plguins

slate swan
rotund stirrup
#

hi can anyone help me on how to download the discord.ui library. i installed it on the terminal but it still says that the module discord.ui is not found

#

!discord.ui

slate swan
#

@rotund stirrup its not a library

rotund stirrup
#

ohh

#

how do i install it then?

slate swan
#

you install the git repo of danny's discord.py master branch

#

or use a fork

rotund stirrup
#

ohh

#

ok tq ill try it rn

slate swan
rotund stirrup
#

.

slate swan
slate swan
#

correct

#

brainmon off topic