Skip to content

Commit 4a267eb

Browse files
committed
add missing function and parameters
1 parent 94127a0 commit 4a267eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/client-discord/src/actions/joinvoice.ts

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
IAgentRuntime,
99
Memory,
1010
State,
11+
generateText,
12+
ModelClass,
1113
} from "@elizaos/core";
1214
import {
1315
Channel,
@@ -117,6 +119,9 @@ export default {
117119
guildId: (discordMessage as DiscordMessage).guild?.id as string,
118120
adapterCreator: (client.guilds.cache.get(id) as Guild)
119121
.voiceAdapterCreator,
122+
selfDeaf: false,
123+
selfMute: false,
124+
group: client.user.id,
120125
});
121126
return true;
122127
} else {
@@ -129,6 +134,9 @@ export default {
129134
?.id as string,
130135
adapterCreator: (client.guilds.cache.get(id) as Guild)
131136
.voiceAdapterCreator,
137+
selfDeaf: false,
138+
selfMute: false,
139+
group: client.user.id,
132140
});
133141
return true;
134142
}
@@ -199,6 +207,9 @@ You should only respond with the name of the voice channel or none, no commentar
199207
?.id as string,
200208
adapterCreator: (client.guilds.cache.get(id) as Guild)
201209
.voiceAdapterCreator,
210+
selfDeaf: false,
211+
selfMute: false,
212+
group: client.user.id,
202213
});
203214
return true;
204215
}

0 commit comments

Comments
 (0)