Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.74k stars 463 forks source link

More examples #248

Closed EmpathyYT closed 2 years ago

EmpathyYT commented 3 years ago

Summary

More examples of new features

What is the feature request for?

The core library

The Problem

There aren't many examples of new features which makes it a bit harder to figure out how to use an alpha feature. Adding more examples would make it easier for the entire community to get to know how to use the newest features.

The Ideal Solution

Add more examples

The Current Solution

A small amount of examples

Additional Context

No response

Dorukyum commented 3 years ago

What would the new examples be for?

ghost commented 3 years ago

What would the new examples be for?

Maybe using slash commands with cogs, can't really seem to find them anywhere. There also could be an example bot, complete with cogs (since that's what most people are going to end up using anyways) to illustrate how everything can be integrated with cogs.

BenDev9 commented 3 years ago

I'd be happy to write an example bot

Dorukyum commented 3 years ago

What would the new examples be for?

Maybe using slash commands with cogs, can't really seem to find them anywhere. There also could be an example bot, complete with cogs (since that's what most people are going to end up using anyways) to illustrate how everything can be integrated with cogs.

Update: A slash cog example has been added with #341.

Dorukyum commented 3 years ago

I'd be happy to write an example bot

There are bot examples such as basic_bot.py.

pratheek78 commented 3 years ago

What about more info about dropdown menus, or other smaller features? i struggled to find an example for editing the message with the specific embed when the user reacts with the respective field. There could be a lot more examples related to things like this even in the official docs.

martinbndr commented 2 years ago

What would the new examples be for?

Would be nice to add/improve the example for persistent views. Like currently it seems that the persistent view for buttons is for a seperate bot / a bot without a cog. But I think its really needed to also add an example for how to use persistent views in a cog. When a bot has multiple features its kind of a must have to use them in a cog.

I already tried using them in a cog but I am facing issues. An example would really help to understand how that works.

krishsharma0413 commented 2 years ago

484

martinbndr commented 2 years ago

image Seems that got outdated

DefiDebauchery commented 2 years ago

Not just code examples, but screenshots of how the examples would look within Discord would make such examples even more useful.

pratheek78 commented 2 years ago

yeah this would be quite ueseful, ngl

krittick commented 2 years ago

Closing this issue as it's too generic and creating examples is possible by anyone - just submit a PR. It's not really a request for the library itself that needs to be tracked.