Comments (7)
How are you using the command? !test @user
?
from discord.py-self.
I also noticed this problem, but I managed to solve it by getting the context information.
*This is far from ideal, but it worked until the next release came out, which should probably fix the problem.
https://github.com/caiocinel/Selfium/blob/main/app/events/client/commands/avatar.py
from discord.py-self.
How are you using the command?
!test @user
?
Yes
from discord.py-self.
I also noticed this problem, but I managed to solve it by getting the context information.
*This is far from ideal, but it worked until the next release came out, which should probably fix the problem.
https://github.com/caiocinel/Selfium/blob/main/app/events/client/commands/avatar.py
OK, thanks, I'll try this out
from discord.py-self.
I also noticed this problem, but I managed to solve it by getting the context information.
*This is far from ideal, but it worked until the next release came out, which should probably fix the problem.
https://github.com/caiocinel/Selfium/blob/main/app/events/client/commands/avatar.py
Your way still isn't working for me
My command:
@Client.command()
async def test123(ctx):
async def byMember(member):
if hasattr(member, 'id'):
targetId = int(member.id)
else:
targetId = member.author.id
return await byID(targetId)
async def byID(id):
target = await Client.fetch_user(int(id))
return target
if(ctx.message.mentions):
target = ctx.message.mentions
else:
target = ctx.args
try:
for t in range(len(target)):
memberFetch = await byMember(target[t])
embed = discord.Embed(colour=discord.Colour.green())
embed.set_author(name=f"🖼️ Here's {memberFetch.display_name} profile picture", url=f"{memberFetch.avatar_url.BASE + memberFetch.avatar_url._url}")
embed.set_image(url=memberFetch.avatar_url.BASE + memberFetch.avatar_url._url)
await ctx.send(embed=embed)
except:
print('not found')
Hope it's not a stupid mistake on my part
from discord.py-self.
Your code worked perfectly in my tests (although it might be better structured), set some breakpoints and see what happens.
from discord.py-self.
Your code worked perfectly in my tests (although it might be better structured), set some breakpoints and see what happens.
Using the development version fixed it for me. Works using your method and the normal method. Thanks for the help
from discord.py-self.
Related Issues (20)
- on_modal doesn't work
- Feature: Add a way to react messages with super reactions
- change_presence afk=True is broken HOT 5
- List Index is out of range HOT 8
- API temporarily down. Falling back to manual retrieval HOT 4
- aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br' HOT 3
- reading voice data when in voice channel HOT 2
- Can't Seem To Catch discord.Forbidden Exception HOT 1
- invalid literal for int() with base 10: ',"2820' HOT 3
- API error HOT 4
- Error join guild
- Terminal color output regression since last release. HOT 3
- add a way to add super reactions
- API Error HOT 3
- KeyError: 'browser_user_agent' HOT 1
- Fragmented control frame causes crash HOT 1
- Slash Commands With Arguments Are Not Sent
- API ERROR + Could not retrieve client build number + could not retrieve browser version. HOT 3
- RichPresence buttons
- Misleading exception when creating a group with one user HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.py-self.