Commit abab0169 authored by nanahira's avatar nanahira

fix

parent f761a147
Pipeline #43342 passed with stages
in 4 minutes and 26 seconds
...@@ -154,7 +154,10 @@ export class Client { ...@@ -154,7 +154,10 @@ export class Client {
if (type <= NetPlayerType.OBSERVER) { if (type <= NetPlayerType.OBSERVER) {
return this.send( return this.send(
new YGOProStocChat().fromPartial({ new YGOProStocChat().fromPartial({
msg: tokens.map((token) => token.text).join(''), msg:
typeof msg === 'string'
? msg
: tokens.map((token) => token.text).join(''),
player_type: type, player_type: type,
}), }),
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment