Skip to content

feat: voice channel status#451

Open
Droid00000 wants to merge 2 commits into
shardlab:mainfrom
Droid00000:feat/voice-channel-status
Open

feat: voice channel status#451
Droid00000 wants to merge 2 commits into
shardlab:mainfrom
Droid00000:feat/voice-channel-status

Conversation

@Droid00000

Copy link
Copy Markdown
Collaborator

Summary

Adds the "new" voice channel status feature.

Added

Channel#status
Channel#start_time

Opcodes::REQUEST_CHANNEL_INFO
Gateway#send_request_channel_info
API::Channel#set_voice_channel_status

EventContainer#channel_status_update
EventContainer#channel_start_time_update

Permissions::FLAGS[:set_voice_channel_status]

AuditLogs::Entry#status
AuditLogs::ACTIONS[:voice_channel_status_delete]
AuditLogs::ACTIONS[:voice_channel_status_update]

@Droid00000 Droid00000 force-pushed the feat/voice-channel-status branch from db267d5 to b0973b9 Compare April 21, 2026 01:29
@Droid00000 Droid00000 force-pushed the feat/voice-channel-status branch from 3b41ed2 to a262ce9 Compare May 17, 2026 06:43
Comment on lines +1041 to +1061
def status
if !instance_variable_defined?(:@status) && voice?
@bot.gateway.send_request_channel_info(@server_id, %i[status voice_start_time])

sleep(0.01) until instance_variable_defined?(:@status)
end

@status
end

# Fetch the start time of the sesison for the voice channel.
# @return [Time, nil] The time at when the voice session started, or `nil`.
def start_time
if !instance_variable_defined?(:@start_time) && voice?
@bot.gateway.send_request_channel_info(@server_id, %i[status voice_start_time])

sleep(0.01) until instance_variable_defined?(:@start_time)
end

@start_time
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to guard these with bot.gateway_check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants