コード例 #1
0
        public async Task AcceptUserMarriage(SocketUser user)
        {
            var userPf = UserProfiles.GetAccount(Context.User);

            if (userPf.MarriageProposals.Contains(user.Id))
            {
                UserProfiles.AcceptMarriage(Context.User, user);

                await ReplyAsync($":tada: Congrulations! You and {user.Username} are married!");
            }
            else
            {
                await ReplyAsync($"You have not proposed to {user.Username}!");
            }
        }