Jump to content

TCAdminSDK.Objects.News


Stealth

Recommended Posts

Allo,

Im having a bit of trouble saving news through the SDK. The news item is created in tc_news just as expected, however tc_news_inbox does not have any rows created so users will not see the news in tcadmin. I have tried logging in as the users in case the news item is created from tc_news on-demand, but to no avail.

 

           		Dim news As New TCAdminSDK.Objects.News
           		news.NewsID = Functions.RandomID()
           		news.NewsDate = DateTime.Now()
           		news.Header = "subject"
           		news.Body = "Body"
          		news.IsHTML = False
          		news.SendEmails = False
           		news.FilterDatacenters = Nothing
          		news.FilterGameTypes = Nothing
           		news.FilterServers = Nothing
          		news.FilterTeamspeakServers = Nothing
          		news.FilterUsers = Nothing

          		news.Save()
          		news.SendToInbox()

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use