From 748addcd2b6f2a895197f2526d9272da37ae1068 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 17 Aug 2025 20:52:35 -0400 Subject: [PATCH] adding message method to join vc's --- message.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/message.go b/message.go index 6d828f7..5c1b4bc 100644 --- a/message.go +++ b/message.go @@ -96,3 +96,9 @@ func (m *Message) Respond(res string) error { _, err := m.sesh.ChannelMessageSendComplex(m.channelID, rep) return err } + +// joins the message author's voice channel. Returns the voice connection object, this connection must be cleaned +// up by the client to prevent issues +func (m *Message) JoinVoiceChannel() (*dg.VoiceConnection, error) { + return m.sesh.joinUserVoice(m.serverID, m.ID, m.sesh.Session) +} -- 2.47.2