private void ClearGreetingCommand(TwitchUser speaker, string additionalText) { TwitchUserInChannel inChannel = room.factory.GetUserInChannel(speaker, room.twitchConnection.channel); inChannel.Load(); inChannel.greetingMessage = null; inChannel.Save(); }
private void SetGreetingCommand(TwitchUser speaker, string additionalText) { if (additionalText != null) { TwitchUserInChannel inChannel = room.factory.GetUserInChannel(speaker, room.twitchConnection.channel); inChannel.Load(); inChannel.greetingMessage = additionalText; var test = inChannel.Save(); Debug.Assert(test); } }