aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-18 17:44:16 -0500
committerRapptz <[email protected]>2016-01-18 17:44:16 -0500
commit1f5d26b7d377701187e319c761a13ab25448d503 (patch)
treeca6923afeac7715b9886a1fcc90a0797f42612b0
parentRemove unneeded owner_id assignment. (diff)
downloaddiscord.py-1f5d26b7d377701187e319c761a13ab25448d503.tar.xz
discord.py-1f5d26b7d377701187e319c761a13ab25448d503.zip
Unit correction in voice docstrings.
-rw-r--r--discord/voice_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 8387afb3..74713e0b 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -482,7 +482,7 @@ class VoiceClient:
Parameters
----------
sample_rate : int
- Sets the sample rate of the OpusEncoder.
+ Sets the sample rate of the OpusEncoder. The unit is in Hz.
channels : int
Sets the number of channels for the OpusEncoder.
2 for stereo, 1 for mono.
@@ -528,7 +528,7 @@ class VoiceClient:
+---------------------+-----------------------------------------------------+
The stream must have the same sampling rate as the encoder and the same
- number of channels. The defaults are 48000 Mhz and 2 channels. You
+ number of channels. The defaults are 48000 Hz and 2 channels. You
could change the encoder options by using :meth:`encoder_options`
but this must be called **before** this function.