GithubHelp home page GithubHelp logo

arjunsharda / nextguild Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 6.0 487 KB

Simplify interactions with the Guilded API

Home Page: https://pypi.org/project/nextguild/

License: MIT License

Python 100.00%
client guilded python

nextguild's Introduction

๐Ÿ‘‹๐Ÿ’ป Hi, I am Arjun Sharda

Fullstack developer

๐Ÿš€ Hi, i'm Arjun Sharda. I'm a full-stack developer and speaker. I love programming, and you might catch me in my free time contributing to open source or making a new project.

arjunsharda

arjunsharda

  • ๐Ÿ”ญ Iโ€™m currently working on Searchor

  • ๐Ÿ“ I write articles on Medium

  • ๐ŸŒฑ Iโ€™m currently learning Java

  • ๐Ÿ‘” Proficiency: Python, HTML, CSS, JavaScript, and TypeScript

  • โšก Fun fact: I love making pull requests

  • โœ‰๏ธ For any inquiries, email me at [email protected]!

Languages and Tools:

bootstrap c cplusplus csharp css3 dart go html5 java javascript kotlin nodejs php python react ruby rust sqlite swift typescript

arjunsharda

ย arjunsharda

arjunsharda

nextguild's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nextguild's Issues

Making a error event

you really should add a
@events.on_error
async def on_error_example(error):
bot.send_message(f"There is a new error {error}") so make something like that so every time there is a error it sends it to the channel and does not turn off the bot

Update client.py send_webhook_message() to match docs

Specifically:

nextguild/nextguild/client.py

Lines 1015 to 1028 in 5c53c54

def send_webhook_message(
self,
server_id: str,
webhook_id: str,
content: str,
):
token = self.get_webhook(server_id, webhook_id)['webhook']['token']
response = self.request(
'POST',
f'https://media.guilded.gg/webhooks/{webhook_id}/{token}',
json={'content': content}
)
return response

Per https://github.com/ArjunSharda/nextguild/blob/main/docs/ext/client/webhooks.rst , this function should also accept the optional arguments embeds: list, username: str, and avatar_url: str.

Additionally, content should simultaneously be changed to be optional here, to match the Guilded Webhook API ( https://guildedapi.com/resources/webhook/#jsonform-params ). Possibly with an in-function check to make sure one of content or embeds are provided?

Typo Error and events won't work

image
Typo error and possible patch


After editing and trying this "possible patch", Events.on_message no longer works (I'm still not sure what's the issue why this happened)

add reason to ban

ban_member(serverid, userid) is there a way to add a reason to that

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.