Skip to content

Commit

Permalink
Merge pull request #139 from devoxin/dev
Browse files Browse the repository at this point in the history
Lavalink.py v5.0.0
  • Loading branch information
devoxin authored Dec 8, 2023
2 parents e3a6ddc + f7824ec commit 2816893
Show file tree
Hide file tree
Showing 30 changed files with 3,306 additions and 2,065 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[flake8]
max-line-length = 300
max-line-length = 150
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ ENV/
# mypy
.mypy_cache/

\.DS_store

\.idea/
\.vscode/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img align="right" src="https://raw.githubusercontent.com/Devoxin/Lavalink.py/master/.github/assets/library_icon.png" height="150" width="150">

# Lavalink.py
[![Python](https://img.shields.io/badge/Python-3.5%20%7C%203.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://www.python.org) [![Build Status](https://travis-ci.com/devoxin/Lavalink.py.svg?branch=master)](https://travis-ci.com/Devoxin/Lavalink.py) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/428eebed5a2e467fb038eacfa1d92e62)](https://www.codacy.com/gh/Devoxin/Lavalink.py/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Devoxin/Lavalink.py&amp;utm_campaign=Badge_Grade) [![License](https://img.shields.io/github/license/Devoxin/Lavalink.py.svg)](LICENSE) [![Documentation Status](https://readthedocs.org/projects/lavalink/badge/?version=latest)](https://lavalink.readthedocs.io/en/latest/?badge=latest)
[![Python](https://img.shields.io/badge/Python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://www.python.org) [![Build Status](https://travis-ci.com/devoxin/Lavalink.py.svg?branch=master)](https://travis-ci.com/Devoxin/Lavalink.py) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/428eebed5a2e467fb038eacfa1d92e62)](https://www.codacy.com/gh/Devoxin/Lavalink.py/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Devoxin/Lavalink.py&amp;utm_campaign=Badge_Grade) [![License](https://img.shields.io/github/license/Devoxin/Lavalink.py.svg)](LICENSE) [![Documentation Status](https://readthedocs.org/projects/lavalink/badge/?version=latest)](https://lavalink.readthedocs.io/en/latest/?badge=latest)

Lavalink.py is a wrapper for [Lavalink] which abstracts away most of the code necessary to use Lavalink, allowing for easier integration into your projects, while still promising full API coverage and powerful tools to get the most out of it.

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# -- Project information -----------------------------------------------------

project = 'Lavalink.py'
copyright = '2022, Devoxin'
copyright = '2023, Devoxin'
author = 'Devoxin'
master_doc = 'index'

Expand Down
58 changes: 44 additions & 14 deletions docs/lavalink.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ Documentation

.. autofunction:: listener

.. autofunction:: add_event_hook
ABC
---
.. autoclass:: BasePlayer
:members:

.. autoclass:: DeferredAudioTrack
:members:

.. autoclass:: Source
:members:

.. autoclass:: Filter
:members:

Client
------
Expand All @@ -16,12 +28,20 @@ Client

Errors
------
.. autoclass:: NodeError
.. autoclass:: ClientError

.. autoclass:: AuthenticationError

.. autoclass:: InvalidTrack

.. autoclass:: LoadError

.. autoclass:: RequestError
:members:

.. autoclass:: PlayerErrorEvent
:members:

Events
------
All Events are derived from :class:`Event`
Expand Down Expand Up @@ -59,16 +79,19 @@ All Events are derived from :class:`Event`
.. autoclass:: NodeChangedEvent
:members:

.. autoclass:: NodeReadyEvent
:members:

.. autoclass:: WebSocketClosedEvent
:members:

.. autoclass:: IncomingWebSocketMessage
:members:

Filters
-------
**All** custom filters must derive from :class:`Filter`

.. autoclass:: Filter
:members:

.. autoclass:: Equalizer
:members:

Expand Down Expand Up @@ -96,32 +119,37 @@ Filters
.. autoclass:: Volume
:members:

Models
.. autoclass:: Distortion
:members:

Player
------
**All** custom players must derive from :class:`BasePlayer`

.. autoclass:: AudioTrack
.. autoclass:: DefaultPlayer
:members:

.. autoclass:: DeferredAudioTrack
Server
------
.. autoclass:: AudioTrack
:members:

.. autoenum:: LoadType
.. autoenum:: EndReason
:members:

.. autoclass:: PlaylistInfo
.. autoenum:: LoadType
:members:

.. autoclass:: LoadResult
.. autoenum:: Severity
:members:

.. autoclass:: Source
.. autoclass:: PlaylistInfo
:members:

.. autoclass:: BasePlayer
.. autoclass:: LoadResultError
:members:

.. autoclass:: DefaultPlayer
.. autoclass:: LoadResult
:members:

.. autoclass:: Plugin
Expand Down Expand Up @@ -159,3 +187,5 @@ Utilities
.. autofunction:: parse_time

.. autofunction:: decode_track

.. autofunction:: encode_track
2 changes: 1 addition & 1 deletion docs/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Licensed using the `MIT license <http://opensource.org/licenses/MIT>`_.

MIT License

Copyright (c) 2022 Devoxin
Copyright (c) 2023 Devoxin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion examples/hikari_music.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def _join(ctx: lightbulb.Context):
# user not in voice channel
if not voice_state:
return

channel_id = voice_state[0].channel_id # channel user is connected to
plugin.bot.d.lavalink.player_manager.create(guild_id=ctx.guild_id)
await plugin.bot.update_voice_state(ctx.guild_id, channel_id, self_deaf=True)
Expand Down
Loading

0 comments on commit 2816893

Please sign in to comment.