Skip to content

Commit

Permalink
Spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
SinisterRectus committed Oct 1, 2020
1 parent 24ce10f commit 520cd11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libs/containers/Member.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,13 @@ handling, the member's `voiceChannel` property will update asynchronously via
WebSocket; not as a result of the HTTP request.
]=]
function Member:setVoiceChannel(id)
id = id and Resolver.channelId(id)
local data, err = self.client._api:modifyGuildMember(self._parent._id, self.id, {channel_id = id or json.null})
if data then
return true
else
return false, err
end
id = id and Resolver.channelId(id)
local data, err = self.client._api:modifyGuildMember(self._parent._id, self.id, {channel_id = id or json.null})
if data then
return true
else
return false, err
end
end

--[=[
Expand Down

0 comments on commit 520cd11

Please sign in to comment.