Skip to content

Commit

Permalink
fixed a typo (#292)
Browse files Browse the repository at this point in the history
* typo

* typo

* Update Client.lua

* Update CHANGELOG.md

* more typos
  • Loading branch information
seyja authored May 17, 2021
1 parent 3aa8da4 commit 2475fc9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- Added `Activity.emojiId` property
- Added `Activity.emojiName` property
- Added `Activity.emojiHash` property
- Added `Activity` as a valid emoji and emojiId resolveable
- Added `Activity` as a valid emoji and emojiId resolvable
- Added `activityType.custom` enumeration
- Added support for message flags and embed suppression
- Added `Message:hasFlag` method
Expand Down
8 changes: 4 additions & 4 deletions libs/client/Client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ end
@m stop
@t ws
@r nil
@d Disconnects all shards and effectively stop their loops. This does not
@d Disconnects all shards and effectively stops their loops. This does not
empty any data that the client may have cached.
]=]
function Client:stop()
Expand Down Expand Up @@ -323,7 +323,7 @@ end
--[=[
@m setAvatar
@t http
@p avatar Base64-Resolveable
@p avatar Base64-Resolvable
@r boolean
@d Sets the client's avatar. To remove the avatar, pass an empty string or nil.
This does not change the application image.
Expand Down Expand Up @@ -541,7 +541,7 @@ end
@t ws
@p status string
@r nil
@d Sets the current users's status on all shards that are managed by this client.
@d Sets the current user's status on all shards that are managed by this client.
See the `status` enumeration for acceptable status values.
]=]
function Client:setStatus(status)
Expand All @@ -564,7 +564,7 @@ end
@t ws
@p game string/table
@r nil
@d Sets the current users's game on all shards that are managed by this client.
@d Sets the current user's game on all shards that are managed by this client.
If a string is passed, it is treated as the game name. If a table is passed, it
must have a `name` field and may optionally have a `url` or `type` field. Pass `nil` to
remove the game status.
Expand Down
2 changes: 1 addition & 1 deletion libs/iterables/Iterable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end
@op fn function
@r number
@d If a predicate is provided, this returns the number of objects in the iterable
that satistfy the predicate; otherwise, the total number of objects.
that satisfy the predicate; otherwise, the total number of objects.
]=]
function Iterable:count(fn)
if not fn then
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/Clock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@c Clock x Emitter
@t ui
@mt mem
@d Used to periodically execute code according to the ticking of the system clock instead of arbitrary interval.
@d Used to periodically execute code according to the ticking of the system clock instead of an arbitrary interval.
]=]

local timer = require('timer')
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/Permissions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ end
--[=[
@m toArray
@r table
@d Returns an array of the names of the permissions that this objects represents.
@d Returns an array of the names of the permissions that this object represents.
]=]
function Permissions:toArray()
local ret = {}
Expand Down
2 changes: 1 addition & 1 deletion libs/voice/opus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Encoder.__index = Encoder

function Encoder:__new(sample_rate, channels, app) -- luacheck: ignore self

app = app or opus.APPLICATION_AUDIO -- TODO: test different appplications
app = app or opus.APPLICATION_AUDIO -- TODO: test different applications

local err = int_ptr_t()
local state = lib.opus_encoder_create(sample_rate, channels, app, err)
Expand Down

0 comments on commit 2475fc9

Please sign in to comment.