SocialCommandModule
A static class in Root.Township, Alta.Console.Commands.
Console module social: adds, removes and lists friends through the Alta API. Needs login, play mode and server_owner.
- Listed in Console, logging and analytics
- Attributes
WithPermissionOnly,LoggedInOnly,PlayOnly,Module
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
static async Task AddFriend(UserInfoAccess player) | social addfriend: sends a friend request to the player and logs the result. |
static async Task ListFriends(UserInfoAccess user) | social listfriends: logs a table of a user's friends and whether each is on this server. |
static async Task RemoveFriend(UserInfoAccess player) | social removefriend: removes the player as a friend if they are one and updates their in-game friend status. |